I\'m trying to append this string:
<div> hello </div>
as an HTML node, but instead of appending HTML it just ap
Maybe this is a bit verbose, but this is usually how I handle stuff like that:
var div = $(document.createElement("div")); div.text(" hello "); //Or div.html(" hello ") if need be... $("#divtoappendto").append(div);