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 "—<p>hello</p>") ("—" {:tag :p, :attrs nil, :content ("hello")})
Comments
Post a Comment