Skip to content

Instantly share code, notes, and snippets.

@gaving
Created April 11, 2010 15:53
Show Gist options
  • Save gaving/362835 to your computer and use it in GitHub Desktop.
Save gaving/362835 to your computer and use it in GitHub Desktop.
var string = (<r><![CDATA[
The text string goes here. Since this is a XML CDATA section,
stuff like <> work fine too, even if definitely invalid XML.
]]></r>).toString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment