title: Preventing HTML encoding in kotlinx.html DSL
body: <p>I am using kotlinx.html DSL to generate an HTML DIV. One of the DIV's attributes is a URL with <code>&amp;</code> in it. e.g. Parameter <code>url</code> below is <code>https://www.example.com?a=1&amp;b=2</code></p>
  <pre><code>fun createDiv(url: String): DIV.() -&gt; Unit {
    return {
      attributes[&quot;data-url&quot;] = url
    }
  }
  </code></pre>
  <p>I was hoping to generate<br />
  <code>&lt;div data-url=&quot;https://www.example.com?a=1&amp;b=2&quot;&gt;</code><br />
  But I am actually getting<br />
  <code>&lt;div data-url=&quot;https://www.example.com?a=1&amp;amp;b=2&quot;&gt;</code></p>
  <p>How can I prevent the URL from being HTML encoded? Thanks!</p>
  <p>P.S. I've tried <code>unsafe</code>. But my actual DIV is a bit too complex to be put into an <code>unsafe</code> construct as a string. I am using Kotlin 1.4.</p>