开发者

How can I include a unicode symbol in a Gollum wiki (Sinatra app)?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜