PHP strip tags in JQuery

by Subramanian 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,'')
925
like
0
dislike
0
mail
flag

You must LOGIN to add comments