diff --git a/lovebird.lua b/lovebird.lua index 7461d7d..cc95722 100644 --- a/lovebird.lua +++ b/lovebird.lua @@ -158,7 +158,9 @@ end ]] -lovebird.pages["buffer"] = "" + +lovebird.pages["buffer"] = [[ ]] + local loadstring = loadstring or load @@ -229,10 +231,15 @@ function lovebird.parseurl(url) end +function lovebird.htmlescape(str) + return str:gsub("<", "<") +end + + function lovebird.print(...) local str = table.concat(map({...}, tostring), " ") if not lovebird.allowhtml then - str = str:gsub("<", "<") + str = lovebird.htmlescape(str) end if lovebird.timestamp then str = os.date('[%H:%M:%S] ') .. str