Set » HTML entity in JavaScript's document.title?

后端 未结 3 953
误落风尘
误落风尘 2021-02-05 16:52

I\'m setting document.title with JavaScript, and I can\'t find a way to supply » (») without it appearing as literal text.

Here\

3条回答
  •  失恋的感觉
    2021-02-05 17:16

    Javascript does not use HTML entities.

    You should simply use the actual » character in your string, and make sure that the file is saved and sent as UTF8.

提交回复
热议问题