I was trying to convert some HTML to PDF but the whole process got stuck forever during the document load phase (on the constructor).
This is the code to reproduce the issue with the 220.127.116.11 nuget package (.NET 4.8):
If I do encoding on the string like this
'>JS TEXT<' it does work correctly.
To work around the issue I had to wrap the call in a
Task.Factory.StartNew and impose a timeout on the wait call.
I didn’t find any relevant option in the
HtmlLoadOptions class a part from the
ResourceLoadingStrategy which is good to prevent network calls.
Something like the
Aspose.Html.Sandbox would be useful.