lets say i have this:
Code: Select all
<?php
$str = "<i><b>Some Text Here</b></i>"
//I want it to return:
echo $str
//Some Text Here
?>Moderator: General Moderators
Code: Select all
<?php
$str = "<i><b>Some Text Here</b></i>"
//I want it to return:
echo $str
//Some Text Here
?>Code: Select all
<?php
$string = "<b>MY STRING</b>";
$string = strip_tags($string, '<b></b>');
echo $string;
//this returns: <b>MY STRING</b> when i view source in my brower.
//thats not what i thought it would do, i thought it would just remove what i tell it to in the arguement.
//The reason i want to remove any HTML tags is so that when i
//am using a script (Send To Friend) to send this string i
//dont want the HMTL tags included in the email msg.
//Argh!!!!!
?>