开发者

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

开发者 https://www.devze.com 2023-02-14 20:00 出处:网络
I\'m trying to use a Unicode character in a Gollum wiki, but it gets escaped - the & gets tu开发者_JAVA技巧rned into $amp;.

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

精彩评论

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

关注公众号