 <p>Inserting some HTML content into a <code>div</code> makes your arbitrary HTML automatically evaluated. What you should do instead is to parse your HTML string with something like this.</p> <pre><code>(defn parse-html [html] "Parse an html string into a document" (let [doc (.createHTMLDocument js/document.implementation "mydoc")] (set! (.-innerHTML doc.documentElement) html) doc )) </code></pre> <p>This is plain and simple ClojureScript, maybe using the Google Closure library would be more elegant if you want you can dig into the <a href="https://google.github.io/closure-library/api/goog.dom.html" rel="nofollow">goog.dom namespace</a> or someplace else inside the Google Closure API.</p> <p>Then you parse your HTML string:</p> <pre><code>(def html-doc (parse-html "&lt;body&gt;&lt;div&gt;&lt;p&gt;some of my stuff&lt;/p&gt;&lt;/div&gt;&lt;/body&gt;")) </code></pre> <p>So you can call Enfocus on your document:</p> <pre><code>(ef/from html-doc :mystuff [:p] (ef/get-text)) </code></pre> <p>Result:</p> <pre><code>{:mystuff "some of my stuff"} </code></pre>