# HG changeset patch # User Goffi # Date 1457188994 -3600 # Node ID 386d61abfac2506efc511a0e479acd331c3f6a0f # Parent 68944e270c406970ed066b60048c7b378f9efac2 jp (blog/preview): xhtml cleaning is now used on preview diff -r 68944e270c40 -r 386d61abfac2 frontends/src/jp/cmd_blog.py --- a/frontends/src/jp/cmd_blog.py Sat Mar 05 13:17:29 2016 +0100 +++ b/frontends/src/jp/cmd_blog.py Sat Mar 05 15:43:14 2016 +0100 @@ -343,7 +343,9 @@ if syntax != 'XHTML': with open(current_file_path, 'rb') as f: - content_xhtml = self.host.bridge.syntaxConvert(f.read(), syntax, 'XHTML', False, self.profile) + # we use safe=True because we want to have a preview as close as possible to what the + # people will see + content_xhtml = self.host.bridge.syntaxConvert(f.read(), syntax, 'XHTML', True, self.profile) # at this point the syntax is converted, we can display the preview