Hey all, I basically output content into a div like this using jquery:
var text = $("#edit").val();
$("#output").text(text);
But I want to turn "<" and ">" into "<" and ">".
text.replace(/</,"<");
doesn't seem to be working for me...
Any ideas? Many thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…