Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Created Issue: HtmlAgilityPackSanitizerProvider stripping attribute values incorrectly [27391]

$
0
0
In using the HtmlAgilityPackSanitizerProvider I've found that providing this html:

```
<div style="page-break-after: always;">
```
Produces the following output, drastically changing the effect of the style:

```
<div style="pageafter&#x3A;&#x20;always&#x3B;">
```


I've setup the whitelist on style with:

```
AttributeList.Add("style", new string[] { "background-color", "margin", "margin-right", "margin-left", "padding", "border", "text-align", "page-break-after" });
```


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>