xsubs Posted January 3, 2008 Share Posted January 3, 2008 Hey. How can i ommit tags (such as: < br >< b >< u >< font.. >) from a string? Is this possible? I want to "clean" a string from all the tags and get only the text. TNX. Link to comment https://forums.phpfreaks.com/topic/84322-omitting-of-tags/ Share on other sites More sharing options...
The Little Guy Posted January 3, 2008 Share Posted January 3, 2008 <?php $string = 'this is a <b>string</b> with some<br> string <a href="">formatting HTML</a>'; echo strip_tags($string); ?> Link to comment https://forums.phpfreaks.com/topic/84322-omitting-of-tags/#findComment-429461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.