ColdFusion UDF Library - stripHTML
December 16th, 2008
«« Back to ColdFusion Library
Category:
STRINGS
Description:
Removes html tags from a string
Parameters:
Returns:
(String) The string with all HTML tags removed.
Requires:
Sample Use:
fooBar = stripHTML("foobar")
Copy to Clipboard
Category:
STRINGS
Description:
Removes html tags from a string
Parameters:
- str (String, required)
The string you wish to remove HTML Tags from
Returns:
(String) The string with all HTML tags removed.
Requires:
Sample Use:
fooBar = stripHTML("foobar")
Copy to Clipboard
function stripHTML(str){
var re = "<.*?>";
str = reReplaceNoCase(str,re,"","all");
return str;
};
// http://www.programmers.org/index.php/coldfusion-udf-library/?ckey=71&function=stripHTML



