&放大器;放大器;或&什么应该用于& (&符)如果我们在xhtml文档中使用utf8? [英] & or & what should be used for & (ampersand) if we are using utf8 in xhtml document?

查看:105
本文介绍了&放大器;放大器;或&什么应该用于& (&符)如果我们在xhtml文档中使用utf8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<&c $ c>& amp; 与此&#38; 之间与&(号)?什么应该与utf8一起使用?

解决方案

两者都是字符引用并引用相同的字符( AMPERSAND ,U + 0026)。 & amp; 是一个命名或实体字符引用,&#38; 是一个数字字符引用。 / p>

实际上,& amp; 实际上只是&#38的替代; (请参阅角色实体列表) :


 <!ENTITY amp CDATA&#38; - &符号,U + 0026 ISOnum  - > 



What is the difference between this &amp; and this &#38; for &(ampersand)? What should be use with utf8 ?

解决方案

Both are character references and refer to the same character (AMPERSAND, U+0026). &amp; is a named or entity character reference and &#38; is a numerical character reference.

In fact, &amp; is actually just a substitution for &#38; (see list of character entities):

<!ENTITY amp     CDATA "&#38;"   -- ampersand, U+0026 ISOnum -->

这篇关于&放大器;放大器;或&#38;什么应该用于&amp; (&符)如果我们在xhtml文档中使用utf8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆