문제

I'm trying to render HTML entities in Hoplon using the following:

(a :href "#" :class "deck-prev-link" :title "Previous" "←")

But instead of an arrow, it's displaying the literal ← in the rendered page.

What am I missing?

도움이 되었습니까?

해결책

So in case anyone is wondering, the answer is to either paste the "←" directly into the string like this:

(a :href "#" :class "deck-prev-link" :title "Previous" "←")

or to use the unicode escape in the string like this:

(a :href "#" :class "deck-prev-link" :title "Previous" "\u2190")

I found the unicode decimal code point for the leftward arrow here: List of XML and HTML Character Entity References.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top