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

Related posts:

  1. Prototype: submit multiple select with ajax call
  2. Pdo get column names
  3. __autoload function

Tagged: ,

§ Leave a Reply

What's this?

You are currently reading Prototype stripTags at westworld: a webmasters best friend.

meta