Friday, November 26, 2010

PHP ,strip html tags using 'strip_tags'

The strip_tags() function strips a string from HTML, XML, and PHP tags.
Example:

<?php
echo strip_tags("Hello <b>world!</b>");
?> 

Output:
Hello world!

No comments:

Post a Comment