Monday, 20 February 2012

Escaping quotes in XSLT for text used in JavaScript or JSON

XSLT template for formatting javascript safe strings by escaping double quote char " i.e. " or " with escaped version \"

 

Note: the opinions on this page don't represent that of my employer in anyway. And, actually only vaguely represent my opinions on the date of publication. (Unlike Ms T, I am very much for turning)