html - Enlive and — -


trying add & mdash; between 2 divs using enlive but

           {:tag :span,              :attrs {:class "mdash"},              :content "—"} 

just returns actual text & mdash; instead of drawing —

thoughts?

enlive escape & ordinary (content some-string), because that's sane default.

to set raw html content , escaped characters, use html-content, uses html-snippet under hood.

example

(html/html-snippet "&mdash;<p>hello</p>")  ("—" {:tag :p,       :attrs nil,        :content ("hello")}) 

Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -