[Rt-devel] html/Elements/ScrubHTML correction
akos.torok at docca.hu
akos.torok at docca.hu
Sun Oct 2 20:28:53 EDT 2005
Hi All,
I think there is a tag missing from the scrubber-allow: <pre>.
Affected RT version
==============
Our RT is 3.4.4pre
Problem:
======
By using PreferRichText sometimes the text appears without formatting.
Reason
=====
The problem occures when the richtext is not a normal html doc, but a
classic text (I mean: linebreak is chr(13) not <br> and spaces are
spaces). In a html document a part like this has to be enclosed by <PRE>
and </PRE> ('pre' means preformatted text). The bug: after these tags
have been eliminated by the scrubber, the text will have displayed
without formatting (no line breaks, no tabs, no spaces).
Resolution
=======
Insert PRE into the scrubber's allow string. Original file:
RT3PATH/share/html/Elements/ScrubHTML, line 64.
$scrubber->allow(
qw[A B U P BR I HR BR SMALL EM FONT SPAN DIV UL OL LI DL DT DD PRE]);
Regards,
Ákos
More information about the Rt-devel
mailing list