Prototype stripTags

October 13th, 2008 § 0

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()

Where Am I?

You are currently browsing entries tagged with striptags() at westworld: a webmasters best friend.