Closed (fixed)
Project:
HTML Purifier
Version:
6.x-2.1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2009 at 00:20 UTC
Updated:
19 Jan 2011 at 14:57 UTC
Hi there!
After hours of searching and trying to remove width and height attributes from div styles i decided to ask here.
<div style="padding: 20px; width: 570px;">
How can i avoid, that width will not appear on div style.
I appreciate your help very much. I lost all my nerves :\
Thank you.
Comments
Comment #1
ezyang commentedDo you need to remove width and height from only div tags, or from all tags?
Comment #2
Witch commentedHi ezyang!
Only from div tags!
But what is the way to disallow width and height from all tags?
Thank you very much!
Comment #3
ezyang commentedIf you wanted to disallow height and width from all tags, the easiest way would be to write a little bit of PHP code that unset the appropriate definitions from the CSSDefinition (it's about three lines, and I'd be willing to walk you through it).
Selectively disabling a CSS property for a specific HTML element is nontrivial, and would require more like a dozen lines of PHP code.
Comment #4
Witch commentedHi ezyang,
i will have a look into the file and will try my best.
I will post my solution as soon as possible.
Comment #5
ezyang commentedYou should let me know which one you want to do, so I can give you instructions.
Comment #6
ezyang commentedClosed on inactivity.