redundent / kotlin-xml-builder

A lightweight type safe builder to build xml documents in Kotlin
Apache License 2.0
151 stars 17 forks source link

Attribue values need to be fully escaped. #17

Closed pkulak closed 5 years ago

pkulak commented 5 years ago

This solves invalid rendering errors when attribute values have illegal characters like ampersands, greater than, etc. I think that technically the keys need the same treatment, but it's probably safe to assume that those are controlled enough by the user to avoid it.

redundent commented 5 years ago

Thanks @pkulak !

I'll merge this in, add some tests and publish it soon.

redundent commented 5 years ago

This has been published in version 1.5.0

pkulak commented 5 years ago

Thanks!