InfiniteAmmoInc / Yarn

934 stars 93 forks source link

CDATA Format for body in XML export #65

Open jmcshopes opened 6 years ago

jmcshopes commented 6 years ago

It would be helpful to have a CDATA container on the body element within the XML format so that angled brackets can be used without making the XML poorly structured.

The highlighting of conditionals/code snippets contained in <<>> is very helpful and a good way to have inline code, but it's a bit of a problem when using Yarn as a way to generate XML files, as angle brackets are interpreted by most parsers as starting or ending a tag.

If the whole thing is in a CDATA container then any characters can be used and XML parsers will know to treat the whole thing as a block of characters rather than interpreting angle brackets as markup.