Dear Aspose Support,
I’m experimenting an issue with very basic HTML handling.
Consider this source HTML:
<p>teste <strong>email</strong> <name@domain.com></p> <p>test <ciao></p>
If this string is loaded into an HTMLDocument and than saved back to HTML, the document becomes:
<head></head><body><p>teste <strong>email</strong> <name@domain.com></p> <p>test <ciao></p> </body>
Now if you try open such HMTL document into a browser, you see that, starting from the first & lt ;
, no content is rendered (basically & lt; is rendered as ‘<’ and HTML parsing breaks).
Anything I do with this HTML (e.g. inserting the snippet inside a DOCX) is of course broken in the same way.
Is there a way to properly handle/preserve & lt; and & gt; sequences?
Please find attached a simplified example.
Using Aspose HTML 22.7
EmbeddedHtmlSnippetTest.zip (563 Bytes)
Thanks in advance for your attention,
Kind Regards
FV