guava icon indicating copy to clipboard operation
guava copied to clipboard

add xml decimal attribute escaper

Open happyhua opened this issue 2 years ago • 1 comments

Extra xml decimal attribute escaper is added in this PR.

It works similar as the existing xml attribute escaper. The main difference is that it will normalize a character as line feed \n in 
 instead of 


This can be useful if you to want to have the same print result as javax.xml.transform.Transformer.

Also a browser like google chrome will print 
 for a line feed \n character when calling XMLSerializer.serializeToString.

happyhua avatar Feb 25 '23 14:02 happyhua

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Feb 25 '23 14:02 google-cla[bot]