Clinton, Rochelle A wrote:
Hello,
I am fairly new to PHP and am having an (SILLY) issue that I cannot seem
to resolve:
I am pulling data from an html file and some of the lines of text that I
need start with "</a>".
I cannot seem to get rid of that tag!!!
I have tried:
* str_replace("<\a>", "", $line)
* preg_replace('/<\/a>/', '', $line) and various other attempts
at creating the appropriate regex for <\a>
* $line = htmlspecialchars($line)
str_replace("</a>", "", $line)
* And obviously strip_tags is not working for me either!
Do you have any suggestions?
Echo out the line before and after you perform something like
strip_tags() on it to see if you're inputting what you're expecting...
echo ( $line );
$line = strip_tags ( $line );
echo ( $line );
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php