mod_post_msg/mod_post_msg.lua
changeset 1418 a0375f84d65a
parent 1417 9b6fbababb8c
child 2993 926aaaeb0d21
--- a/mod_post_msg/mod_post_msg.lua	Wed May 28 20:34:57 2014 +0200
+++ b/mod_post_msg/mod_post_msg.lua	Wed May 28 21:20:51 2014 +0200
@@ -50,7 +50,7 @@
 		message = msg({ to = post_body.to or to, from = authed_user,
 		                type = post_body.type or "chat"}, post_body.body);
 		if post_body.html then
-			local html, err = xml.parse(post_body.html);
+			local html, err = xml.parse([[<body xmlns="http://www.w3.org/1999/xhtml">]]..post_body.html..[[</body>]]);
 			if not html then
 				module:log("warn", "mod_post_msg: invalid XML: %s", err);
 				return 400;