Prototype’s stripTags function needs a string as input. If you want to access a dom node with this function, you need to acces the innerHTML, else the input won’t match.
expl.
alert($(’mydiv’).stripTags(); -> wont work
use
alert($(’mydiv’).innerHTML.stripTags();
Related Blogs
- Related Blogs on Prototypejs
- Related Blogs on striptags()
Related posts: