<?php //The function "register_activation_hook" allow you // to run a plugin function when the plugin is activated. register_activation_hook(__FILE__ , $function); ?>
Tag Archives: String functions
Strip HTML tags except the given – PHP
<?php $text = '<p>TestP</p><b>Tesb</b> <a href="">TestA</a>'; echo strip_tags($text); //Strip all tags echo strip_tags($text, '<p><a>'); //Strip all tags except p and a ?>