PHP Classes

attr problem

Recommend this page to a friend!

      PHP Input Filter  >  All threads  >  attr problem  >  (Un) Subscribe thread alerts  
Subject:attr problem
Summary:attr location in code
Messages:2
Author:Vilk
Date:2008-01-25 15:58:16
Update:2008-02-02 21:43:33
 

  1. attr problem   Reply   Report abuse  
Picture of Vilk Vilk - 2008-01-25 15:58:17
Hi!

I notice that if i got code:

<img height="10" src="some/image.jpg">

and i try clean attr height filter works perfect but when my code is write this way:

<img src="some/image.jpg" height="10">

height attr stay in code

any fix to this problem ?

  2. Re: attr problem   Reply   Report abuse  
Picture of Santosh Patnaik Santosh Patnaik - 2008-02-02 21:43:33 - In reply to message 1 from Vilk
Try <a href="http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php">htmLawed</a>. Besides filtering admin-specified HTML tags, attributes, etc., it can also balance and properly nest HTML tags, transform deprecated tags and attributes, and so on.