Re: Help?
| From: | John Nichel | Date: | Thu, 23 Mar 2006 19:56:38 +0000 |
| Subject: | Re: Help? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232472@lists.php.net to get a copy of this message | ||
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@dotcomholdingsofbuffalo.com