The following code is often seen in the source code of the webpage:
<! [CDATA [other content]>. Other content is generally a script.
Why use this label?
This label indicates character-data, that is, character data.
Purpose: Tell the XML Parser not to parse this section. If the script in other content contains a <B, the <number is recognized as part of the XML tag. Because no> is found or the end mark of the symmetric pair, the XML parser will parse the error. Therefore, you need to tell the XML Parser not to parse this section.
PS: Likewise <! -- Other content --> is to tell the server to try the engine not to parse "other content", because they are comments
@ * Other content * @ is to tell the razor of MVC to try the engine not to parse "other content", because they are comments
And so on
The <> & symbol in the XML fragment is invalid.
There are 5 predefined entity references in XML:
& Lt; |
< |
Yu no. |
& Gt; |
> |
Yu no. |
& Amp; |
& |
And (and) No. |
& Apos; |
' |
Single quotes |
& Quot; |
" |
Double quotation marks |
& Why is it invalid? Because the Escape Character of the <> number must be used &
Brief Explanation of CDATA