How to remove HTML Tags from string?
Posted by
om 15 May, 2009
If your strings have image code, any html code or DIV code you can easily remove using this code.
View Code PHP
<?Php $str = preg_replace("/<.*?>/", "", $str); ?> |
Hope this little code will be useful for you.
Categories :
Easy PHP

thanx,
this code is really work fine
thanx again , for help
Isn’t strip_tags() better/faster?
Using regular expression you can better control your output.