If I create templates for documents in other formats than HTML, where is the place to implement the character escaping?
A simple example: If in a vcard-template I have
FN;CHARSET=utf-8:<%= $name %>
the illegal characters in $name (comma, semicolon, newline) have to be escaped with a backslash, while the illegal characters from XML should remain unchanged.
Does anybody know where I have to implement this additional escaping function?
Thanks
Rolf