[TYPO3-dev] Removing strip_tags dangerous?

Popy popy.dev at gmail.com
Fri Oct 19 10:12:50 CEST 2007


no, because htmlspecialchars will encode <> signs

2007/10/19, Georg Ringer <mail-spam at ringerge.org>:
>
> Hello,
>
> for my current extension project I would like to have html-tags inside
> the alt/title tag of an image. These are removed in
> class.tslib_content.php > function getAltParam().
>
> ----
> $altParam = ' alt="'.htmlspecialchars(strip_tags($altText)).'"';
> ----
>
> Is it dangerous to remove the strip_tags function?
>
> thanks a lot
> Georg
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>



-- 
Popy

Vulnerant omnes, ultima necat.

http://popy.sytes.net




More information about the TYPO3-dev mailing list