Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
& mdash; を追加しようとしています。Enliveを使用して2つのdivの間ですが、
{:tag :span, :attrs {:class "mdash"}, :content "—"}
実際のテキストを返すだけです & mdash; を描く代わりに —
考え?
Enlive は&、通常(content some-string)のデフォルトであるためにエスケープします。
&
(content some-string)
生の HTML コンテンツとエスケープ文字を設定するには、内部で使用するhtml-contentを使用html-snippetします。
html-content
html-snippet
例
(html/html-snippet "—<p>hello</p>") ("—" {:tag :p, :attrs nil, :content ("hello")})