Helma logo
helma.org » Home > Stories > stripTags()

stripTags()

Removes markup tags from a string.

Removes any < and > as well as everything between these two characters from a string. In other words: extracts the essence of the text from a string without anything that looks like markup.

Syntax
stripTags(String)

Example
var str = "<html>The Nudist on the <b>Late Shift</b></html>";
res.write(stripTags(str));
The Nudist on the Late Shift


... comment


Page last modified on 2002-07-16 12:46 by hns