comparison mod_xhtmlim/mod_xhtmlim.lua @ 6443:7547c2869e78

mod_xhtmlim: Replace util.serialization.serialize with %q
author Link Mauve <linkmauve@linkmauve.fr>
date Wed, 11 Mar 2026 00:34:11 +0100
parents 1f68287138e3
children
comparison
equal deleted inserted replaced
6442:27fd5c417e19 6443:7547c2869e78
58 if no_styles then 58 if no_styles then
59 tags[tag]["style"] = nil; 59 tags[tag]["style"] = nil;
60 end 60 end
61 end 61 end
62 62
63 -- module:log("debug", "tags = %s;", require "util.serialization".serialize(tags)); 63 -- module:log("debug", "tags = %q;", tags);
64 64
65 -- TODO Decide if disallowed tags should be bounced or silently discarded. 65 -- TODO Decide if disallowed tags should be bounced or silently discarded.
66 -- XEP says "ignore" and replace tag with text content, but that would 66 -- XEP says "ignore" and replace tag with text content, but that would
67 -- need a different transform which can't use `maptags`. 67 -- need a different transform which can't use `maptags`.
68 if not module:get_option_boolean("bounce_invalid_xhtml", false) then 68 if not module:get_option_boolean("bounce_invalid_xhtml", false) then