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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -