I am stuck on trying to escape only part of a string in jquery.
So straight to the example
$("#tbody").append("Hi <escape this> and <not this>");
I know that I can escape it by doing this.
$("#tbody").text("Hi <escape this> and <not this>");
but then the whole string gets escaped and its not just a row but the whole context of the tbody.
then I tried to put it in several appends like this
$("#tbody").append("Hi");
$("#void").text("<escape this>").appendTo("#tbody");
$("#tbody").append("and <not this>");
Now this creates rows for each append and breaks the structure of my entry as it should only by one row.
Kind Regards