note 5129 deleted from function.str-replace by philip
| From: | philip@php.net | Date: | Mon, 04 Feb 2002 13:42:00 +0000 |
| Subject: | note 5129 deleted from function.str-replace by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-26232@lists.php.net to get a copy of this message | ||
to delete everything between (font size=-1> and </font>
try something like
$data is the data
this is kinda slow :) and not optimized 2 anything..
<pre>$first=strpos($data,"nt>");
$last=strpos($data,"<",$first+1)-$first-3;
$output=htmlspecialchars(substr(($data),$first+4,$last));</pre>