andresriancho / owaspantisamy

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

Style property starting with hyphen is removed #192

Open vecin2 opened 4 years ago

vecin2 commented 4 years ago

I have an html like the following:

<div style="-aw-headerfooter-type: footer-primary">
<p> This is a footer </p>
<\div>

After running antisamy is reduced to:

<div style="">
<p> This is a footer </p>
<\div>

We've even added the following config to the css-rules section:

    <property name="-aw-headerfooter-type" description="This class is generated by Aspose when converting to html a .doc with a footer">
        <regexp-list>
            <regexp value="anything"/>
        </regexp-list>
    </property>

We have more style properties starting by hyphen, how could we setup the antisamyConfig.xml so those properties are not removed?