Laplandia / owaspantisamy

Automatically exported from code.google.com/p/owaspantisamy
0 stars 0 forks source link

Color code is canonicalized to rgb code #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Feature request from Raphael Moita regarding CSS color code:

Does someone know why AntiSamy changes values Hex to RGB like this below
and how can I avoid that?

<font style="BACKGROUND-COLOR: #ffff00"> to <font style="BACKGROUND-COLOR:
rgb(255,255,0)">

Proposed implementation by using a policy directive that allows users to
specify canonicalization format for CSS colors (hex, rgb, etc).
Subsequently, lexicalValueToString method needs to be changed to honor the
new directive.

Original issue reported on code.google.com by li.jaso...@gmail.com on 18 Apr 2009 at 6:29

GoogleCodeExporter commented 9 years ago

Original comment by arshan.d...@gmail.com on 3 Aug 2009 at 2:52