--- a/mod_muc_log/mod_muc_log.lua Mon Oct 19 22:15:57 2009 +0200
+++ b/mod_muc_log/mod_muc_log.lua Mon Oct 19 22:43:30 2009 +0200
@@ -26,6 +26,7 @@
]]--
local html = {};
html.doc = [[<html>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<head>
<title>muc_log</title>
</head>
@@ -157,8 +158,11 @@
end
local function htmlEscape(t)
+ t = t:gsub("<", "<");
+ t = t:gsub(">", ">");
+ t = t:gsub("(http://[%a%d@%.:/&%?=%-_#]+)", [[<a href="%1">%1</a>]]);
t = t:gsub("\n", "<br />");
- -- TODO link text into klickable link and such stuff
+ -- TODO do any html escaping stuff ...
return t;
end