Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between %26 and & for an ampersand? [duplicate]

What is the difference between & and & for & (ampersand)?

What should be used with UTF-8?

like image 880
Jitendra Vyas Avatar asked Nov 21 '25 23:11

Jitendra Vyas


1 Answers

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

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

<!ENTITY amp     CDATA "&#38;"   -- ampersand, U+0026 ISOnum -->
like image 50
Gumbo Avatar answered Nov 23 '25 15:11

Gumbo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!