Tuesday, 27 August 2013

jQuery text() in pure Javascript

jQuery text() in pure Javascript

jQuery text() is a good function for get text from an element because it
respects spaces and line breaks. How to replace it with cross-browser pure
javascript function?
Note: innertext and textcontent are no good solution because line breaks
and spaces (partially) are not consider.

No comments:

Post a Comment