Html Entity Name vs entity Number?

asp.net, html, html-entities

Solution

There is not clear guidance as to when one should use a numeric character reference (say `£`) over a character entity reference (say `£`) or vice versa.

So long as a character entity reference is a defined one (you can define your own), you can use it.

The converse is that if it isn't defined, you should use a numeric character reference.

Problem

I saw this table : when I program Asp.net and want to display these special html entities , I use Entity Name. (but both seems to work) question : in what scenarios should I use entity number ( and not entity name ) ? p.s. Ive seen situation in which asp.net doesnt like Entity Number

Original source

Related problems