X-Git-Url: http://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/bc4daa2900c702913be7dc3e46441b192f44772a..5aa756ee68dc2134b6acac8a66af2f1c14521721:/lib/xhtml-compat.rb diff --git a/lib/xhtml-compat.rb b/lib/xhtml-compat.rb index f69c1ee..25fe2e2 100644 --- a/lib/xhtml-compat.rb +++ b/lib/xhtml-compat.rb @@ -20,6 +20,9 @@ class XhtmlCompatFilter < Nanoc::Filter identifier :xhtml_compat def run(content, params = {}) - return content.gsub(/([^[:space:]])\/>/m, '\1 />'); + text = content.gsub(/([^[:space:]])\/>/m, '\1 />'); + text.gsub!("]]>", '\&*/') + return text end end