identifier :xhtml_compat
def run(content, params = {})
- return content.gsub(/([^[:space:]])\/>/m, '\1 />');
+ text = content.gsub(/([^[:space:]])\/>/m, '\1 />');
+ text.gsub!("<![CDATA[]]x><!--]]>", '/*\&')
+ text.gsub!("<![CDATA[-->]]>", '\&*/')
+ return text
end
end