标签: javascript html
答案 0 :(得分:0)
var str = 'foo & bar'; str = str.replace('&', '&');//now str == 'foo & bar' form.text.value = str;