You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function strip_html_tags(str)
|
|
{
|
|
if ((str===null) || (str===''))
|
|
return false;
|
|
else
|
|
str = str.toString();
|
|
return str.replace(/<[^>]*>/g, '');
|
|
}
|
|
|
|
console.log(strip_html_tags('<p><strong><em>PHP Exercises</em></strong></p>'));
|