JQuery HTML Preview Exception
3 answers
if you use
$(yourselector).text("<h1>Your text String</h1>");
then jQuery will render the actual text including special characters. If you are using
$(yourselector).html("<h1>Your text String</h1>");
then HTML special characters will be interpreted when displayed.
I am assuming that you want to display the text that the user enters between the list tags.
+5
a source to share