note 14370 added to function.strip-tags.php

From: Date: Sat, 28 Jul 2001 02:43:23 +0000
Subject: note 14370 added to function.strip-tags.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15971@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) http://www.php.net/manual/en/function.strip-tags.php

« previous php.notes (#15971) next »