I\'m having a problem trying to escape some code... Basically, I want to escape \"<\" and \">\" but I want them to APPEAR in my #output div as \"<\" and \">\". Current
Try this:
var textval = $("#textarea").val(); $("#output").text(textval);
jQuery offers two methods - $.text() and $.html() where the method names speak for themselves :)