Character escaping in non-HTML templates

25 views
Skip to first unread message

Tekki

unread,
Jun 10, 2012, 5:55:24 AM6/10/12
to mojol...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages