Mercurial > prosody-modules
diff mod_xhtmlim/mod_xhtmlim.lua @ 3699:1f68287138e3
mod_xhtmlim: Default to stripping @style attribute by default
Proper sanitation would require a CSS parser, easier and probably best
for everyone to just strip by default.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 08 Oct 2019 18:35:48 +0200 |
parents | 6444fb5dbb51 |
children |
line wrap: on
line diff
--- a/mod_xhtmlim/mod_xhtmlim.lua Tue Oct 08 17:32:50 2019 +0100 +++ b/mod_xhtmlim/mod_xhtmlim.lua Tue Oct 08 18:35:48 2019 +0200 @@ -5,7 +5,7 @@ local st = require "util.stanza"; local url = require "socket.url"; -local no_styles = module:get_option_boolean("strip_xhtml_style", false); +local no_styles = module:get_option_boolean("strip_xhtml_style", true); -- Tables from XEP-0071 local xeptables = [[