I m trying to add HTML inside an element but I m having serious problems escaping quotes and such.
我曾尝试过这么多的事情,我甚至不听说过的话,这就是它是如何看待的:(我消除了任何穿梭的企图,因为它使它更加混淆了)。
document.getElementById("sharerContainer").innerHTML =
"<div onclick= teleport( justwalk.it/house?uid=" + sharerID +
" ) ><div class= face style= background-image: url( https://graph.facebook.com/" +
sharerFID + "/picture ); ></div>" + sharer;
是否有另一种方式通过javascript书写超文本以减少这类问题?