CKEditor and sanitize

125 views
Skip to first unread message

Giuseppe Luca Scrofani

unread,
Jul 8, 2010, 12:16:24 PM7/8/10
to web...@googlegroups.com
Hi all, I've "installed" CKEditor as instructions in
http://www.web2pyslices.com/main/slices/take_slice/18
But when I save some html it is not rendered in the output as html, it
is rendered as text with html tags.
I want to disable this "sanitizing" feature, but I cant find how...
Please, could you provide me some directions or even better examples?

gls

Vasile Ermicioi

unread,
Jul 8, 2010, 3:58:57 PM7/8/10
to web...@googlegroups.com


>>> print DIV("<b>hello</b>")
&
amp;lt;b&amp;gt;hello&amp;lt;/b&amp;gt;

>>> print DIV(XML("<b>hello</b>"))
<
b>hello</b>

you need {{ =XML(yourhtmlstring) }}


Giuseppe Luca Scrofani

unread,
Jul 9, 2010, 12:37:54 AM7/9/10
to web...@googlegroups.com
This worked perfectly :)
Reply all
Reply to author
Forward
0 new messages