Should I still use html entities? Why?

前端 未结 3 1024
北荒
北荒 2020-12-09 03:23

Are HTML entities still useful or should I simply create UTF-8 encoded html documents? Please explain why.

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-09 03:58

    In my experience as long as your data really is UTF-8 and you are correctly telling the browser that it is UTF-8 then you don't need to use entities. Except for things like >, <, " ; of course.

提交回复
热议问题