joint icon indicating copy to clipboard operation
joint copied to clipboard

Invalid XML entity  

Open B3rn475 opened this issue 9 years ago • 3 comments

The text attr with a space in it puts a   that is not a valid XML entity (it should be &xA0;)

B3rn475 avatar Dec 24 '15 21:12 B3rn475

+1 Also seeing this

dylandechant avatar Jan 19 '16 14:01 dylandechant

image I am not sure here. It's necessary to use no-break spaces otherwise IE would collapse all spaces into one. Where does it actually cause problems?

Note that if you need to convert a DOM Subtree to a text (e.g data uri (data:image/svg+xml;) you can post-process it. image

kumilingus avatar Feb 27 '16 18:02 kumilingus

In the end I added a regular expression that fixes this and other problems. image I am not sure here. It's necessary to use no-break spaces otherwise IE would collapse all spaces into one. Where does it actually cause problems?

Note that if you need to convert a DOM Subtree to a text (e.g data uri (data:image/svg+xml;) you can post-process it. image


Reply to this email directly or view it on GitHub: https://github.com/clientIO/joint/issues/205#issuecomment-189698645

B3rn475 avatar Feb 27 '16 18:02 B3rn475