jquery .text() and unicode

后端 未结 4 946
没有蜡笔的小新
没有蜡笔的小新 2021-02-01 15:03

I\'d like to display the \"Open Lock\" character in my HTML link text.

If I do it directly it shows up correctly with 🔒<

4条回答
  •  鱼传尺愫
    2021-02-01 15:41

    You can put the character there directly, as a quoted string, e.g.

    $("#myID").text('

提交回复
热议问题