innerHTML parse for Google Chrome?

Posted by user554095 on Stack Overflow See other posts from Stack Overflow or by user554095
Published on 2010-12-26T03:31:18Z Indexed on 2010/12/26 3:54 UTC
Read the original article Hit count: 180

Filed under:
|
|

Hey all.

I am adding text to a textArea via Javascript in Chrome (doing it a totally different way in Firefox/IE as Chrome does not support contentWindows).

Here is my code:

document.getElementById("vB_Editor_001_textarea").value += '<font color="white"><b>' + numberLabel + ':</b> ' + armory + '</font><br/>';

This HTML is getting put directly into the textArea without being parsed. How can I make it parse into regular text with the HTML markup when it hits the textArea?

Thanks!

© Stack Overflow or respective owner

Related posts about google

Related posts about google-chrome