##// END OF EJS Templates
encoding: add option to escape non-ascii characters in JSON...
encoding: add option to escape non-ascii characters in JSON This is necessary for hgweb to embed JSON data in HTML. JSON data must be able to be embedded in non-UTF-8 HTML page so long as the page encoding is compatible with ASCII. According to RFC 7159, non-BMP character is represented as UTF-16 surrogate pair. This function first splits an input string into an array of UTF-16 code points. https://tools.ietf.org/html/rfc7159.html#section-7

File last commit:

r18526:9409aeaa stable
r28068:9ece901f default
Show More
bookmarkentry.tmpl
6 lines | 228 B | application/x-cheetah | CheetahLexer
Yuya Nishihara
hgweb: add missing bookmarks templates to atom/rss styles...
r13858 <item>
<title>{bookmark|escape}</title>
Thomas Arendsen Hein
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names...
r18526 <link>{urlbase}{url|urlescape}rev/{node|short}</link>
Yuya Nishihara
hgweb: add missing bookmarks templates to atom/rss styles...
r13858 <description><![CDATA[{bookmark|strip|escape|addbreaks}]]></description>
<pubDate>{date|rfc822date}</pubDate>
</item>