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. Quote Link to comment 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); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.