[英]Using HTML special characters code vs pasting the special codes directly
Which is considered a better practice and why in terms of what does it effect: 哪种方法被认为是更好的做法,以及为什么会产生什么影响:
To use special characters HTML codes in a webpage for example ©
在网页中使用特殊字符HTML代码,例如©
for copyright or to use Character Map
and copy paste the symbol in the page directly. 以获得版权或使用“ Character Map
并复制,然后将符号直接粘贴到页面中。
To be more specific under which circumstances is it NOT recommended to use html literals? 更具体地说,在哪种情况下不建议使用html文字?
Literal characters: 文字字符:
Entities: 实体:
Which is "better" depends on the particular circumstances. 哪个“更好”取决于具体情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.