RichTextArea.setHTML() - sometimes parts of HTML are escaped, sometimes not... ??

37 views
Skip to first unread message

TimOnGmail

unread,
Oct 11, 2012, 6:37:13 PM10/11/12
to google-we...@googlegroups.com
Another question - when I call setHTML() on a RichTextArea, with a value like this:

<span style="random css here">HELLO THERE<br></span>

... most of the time the <br> is escaped, so the underlying HTML is:

<span style="random css here">HELLO THERE&lt;br&gt;</span>

SOMETIMES, however, it is rendered exactly as-is, not escaped.  It seems to be timing-dependent, because if I put a delay between the attachment of the RichTextArea and the call to setHTML(), it rendereds properly, without any escaping.

Has anyone seen this?  Any other time-dependent twitchiness like this in RichTextArea?

- Tim

TimOnGmail

unread,
Oct 12, 2012, 3:29:23 PM10/12/12
to google-we...@googlegroups.com
You can ignore this post - I found out this was due to my own code doing this in another part of the app. :-)

- Tim
Reply all
Reply to author
Forward
0 new messages