viralpatel.info
News: www.viralpatel.info >> blog <new> !
Blog


Twitt this! Email this!
Dynamically added contents in hidden "iframe" was surrounded by <pre> tags in Chrome & Firefox.
innerHTML
: fetched added contents with "<pre>" tags

innerText
: fetched the original string ( in Chrome )
: fetched blank string ( in Firefox)

textContent
: fetched the original string ( in Chrome & Firefox)


source : How to remove HTML Tags from a string in Javascript