Not escaped characters in XML view

Johann
Posts: 109
Joined: Wed Jun 17, 2015 12:46 pm

Not escaped characters in XML view

Post by Johann » Thu Mar 04, 2021 12:37 pm

Hello,

I am using Author 22.1.0.0

When a user writes special characters such as "<", ">" or " " " in Author view, only "<" character is escaped in XML view and appears "&lt;".

How can the other characters be escaped too ?

Thanks for your help,

Johann

Radu
Posts: 7540
Joined: Fri Jul 09, 2004 5:18 pm

Re: Not escaped characters in XML view

Post by Radu » Thu Mar 04, 2021 2:10 pm

Hi Johann,

The characters that are left unescaped are left as such because they do not break the validity of the XML document. The "<" character on the other side always needs to be escaped in order for the XML document to remain wellformed. There is no setting on our side to control this, basically when serializing we do the minimum possible number of changes to preserve the XML wellformed.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply