Add HTML inside Element reduce problems with escaping
<p>I'm trying to add HTML inside an element but I'm having serious problems escaping quotes and such. </p>

<p>I tried so many things and I'm not even getting the slashs, this is how it looks: (I removed any attempt of escaping because it was making it even more confusing)</p>

<pre><code>document.getElementById("sharerContainer").innerHTML =
    "&lt;div onclick='teleport('justwalk.it/house?uid=" + sharerID +
    "')'&gt;&lt;div class='face' style='background-image: url('https://graph.facebook.com/" +
    sharerFID + "/picture');'&gt;&lt;/div&gt;" + sharer;
</code></pre>

<p>Is there another way to write HTML through javascript to reduce this kind of problems?</p>
