1
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e7e7e7');
background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#e7e7e7));

These kinds of css properties are removed when filtering input. I'm not sure if this is due to CSSTidy or HTML Purifier. I've tried to look in both of the manuals without finding any clues.

4

2 に答える 2

3

HTML Purifier は、間違いなくこれらのプロパティを取り除きます。CSS Tidy もおそらくそうなります (確かではありませんが)。それらのそれぞれに対してカスタムの検証 AttrDefs を作成する必要があります。

于 2011-03-05T01:51:03.623 に答える
1

私はちょうどこれを経験しました。紛らわしい場合のために、エドワードはこれについて言及しています。

http://htmlpurifier.org/phorum/read.php?2,6154,6154#msg-6154

于 2012-05-01T01:42:44.220 に答える