I've also posted my problem as a Github Issue on the official repo.
I am using PreMailer.Net to inline CSS into HTML documents. However, when I call MoveCssInline, it encodes non-ASCII characters like '&'. For example:
<a href="http://www.website.com/page?param1=a¶m2=b"></a>
Is changed to:
<a href="http://www.website.com/page?param1=a&param2=b"></a>
I thought this behavior would be limited to URLs and href values but it turns out it also encodes innerHTML/content. For instance:
Additionally, I have tested further and found that this encoding is not just done on attributes like href. It in fact will also encode text/InnerHTML values, which are absolutely valid html without encoding. Example:
<p>&</p>
This is valid HTML and should not be encoded, but PreMailer.Net will change this to:
<p>&</p>
Does anyone have a fix or workaround for this? I do not have control over the HTML documents and am not allowed to change the URLs or content other than inlining the CSS.