When writing HTML code that should display HTML code, the only characters that need encoding are < and &. For reasons of symmetry (and maybe "readability"), also > should be encoded. Quotes ' and " do not need to be encoded in plain HTML text content.
I suggest adding a conversion that covers the three mentioned characters but no quotes. There's no difference between HTML and XML for this matter, so the conversion name could be both. Maybe naming it XML would be more appropriate.
When writing HTML code that should display HTML code, the only characters that need encoding are
<and&. For reasons of symmetry (and maybe "readability"), also>should be encoded. Quotes'and"do not need to be encoded in plain HTML text content.I suggest adding a conversion that covers the three mentioned characters but no quotes. There's no difference between HTML and XML for this matter, so the conversion name could be both. Maybe naming it XML would be more appropriate.