PHP Snippets

Name:Strip HTML Tags
Description: Strips HTML tags using PHP's strip tag function. Useful for various security issue.

Code below...
> <?php

  
//Variable with HTML tag
  
$html_tag "<b>bold</b>";

  
//Strips HTML tags using strip _tags()
  
$strip_html strip_tags($html_tag);

  
//Displa the new result
  
echo $strip_html;

?>

« Back to PHP Snippets

Home | Site Map | Privacy Policy | Advertising | Contact Us
Copyright © 2006-2014 r2xDesign.net - All Rights Reserved.
eXTReMe Tracker