PHP strip tags in JQuery
by Subramanian[ Edit ] 2014-03-21 14:16:32
PHP strip tags in JQuery :
var text="<span>GvSubhu</span>";
text=text.replace(/</?[^>]+>/gi, '');
The below code is used to remove all html tags except particular tag .
text.replace(/</?[br|li|ol|ul]+/?>/igm,'')