Jump to content

innerHTML parse for Chrome?


shanejeffery86

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/222654-innerhtml-parse-for-chrome/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.