I'm trying to use a Unicode character in a Gollum wiki, but it gets escaped - the &
gets tu开发者_JAVA技巧rned into $amp;
.
Is there something like Rails' .html_safe
for Gollum or for Sintra apps in general?
I’m sure it uses UTF-8, which means you could just paste in the symbol itself? In most cases this is quite practical… Only for non-breaking-spaces etcetera I still use unicode character entitities.
It could be there is an option to escape input text, but probably not since Gollum has to run on GitHub… this means they are careful about sanitising input.
精彩评论