|Subject:||Patch: don't needlessly escape characters in element content|
Hi The as_XML() method in HTML::Tree 5.03 always escapes <, >, ', " and & characters when they appear in element attributes and content. However, apostrophes and double-quotes often appear in English text and they don't need to be escaped in XML content (only in attributes). What HTML::Tree currently does is technically correct, but not very convenient for any human that wants to read its output. "It's" is easier to read than "It's". It's also saves a few bytes. Attached patch fixes the as_XML() method so that it only escapes apostrophes and double-quotes when they appear in element attributes. Thanks Tomaž
Message body not shown because it is not plain text.