note 14370 deleted from function.strip-tags.php by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Sat, 28 Jul 2001 07:17:53 +0000 |
| Subject: | note 14370 deleted from function.strip-tags.php by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15974@lists.php.net to get a copy of this message | ||
Here's some funny contradiction :<br>
As I wanted to turn an entire HTML page into text to include it into another HTML page, using the
strip_tags function, I was unexpectedly abused by the title tag, which content was readable at the
first line of the resulting text.<br>
This was the same with css style definitions which aren't positionned between <!-- and
-->;<br><br>
The solution is to keep title and style tag in place, to make them not appear ! (most navigators do
not take title into account when found in the body part)