Java
String html_stripped = html.replaceAll("\\<.*?\\>", "");
PHP
strip_tags($html); // built-in PHP function to strip HTML and PHP tags
Javascript
var html_stripped = html.replace(/(<.*?>)/ig,"");
Books, worksheets, templates, frameworks and other useful resources for Chief Technology Officers (CTOs), VPs of Engineering & Technology Directors
Java
String html_stripped = html.replaceAll("\\<.*?\\>", "");
PHP
strip_tags($html); // built-in PHP function to strip HTML and PHP tags
Javascript
var html_stripped = html.replace(/(<.*?>)/ig,"");
Comments are closed.
Great Work ! Short And Sweet Keep Going
Thanks for this – very nice little piece of code and very muchly appreciated!
100% works