Are there differences between custom XML and HTML character encoding?

Are there any characters that are encoded in HTML but not XML, or vice versa?

Are all encodings the same between them? Like & for character more?

+3
source share
2 answers

XML predefines several character objects. See Section 4.6 of the XML 1.1 Specification:

http://www.w3.org/TR/xml11/#sec-predefined-ent

, XML & lt;, & gt;, amp;, & amp;, " ( " XML- , " ). , , <! ENTITY... > DTD .

HTML.

+6

. HTML4 , XML. - w3.org. &gt; . , &lt; - <, : &#60;. , HTML XML. . w3.org XML.

+2

Source: https://habr.com/ru/post/1784805/


All Articles