What are the HTML entities for up and down triangles?

alex picture alex · Feb 19, 2010 · Viewed 36.7k times · Source

I've found the outlined versions, but I want the solid up and down triangles.

Does anyone know these entities?

Answer

outis picture outis · Feb 19, 2010

All named HTML entities are specified in chapter 24 of the HTML standard. The only thing missing from the page are rendered entities, but you can easily create your own copy with the additional information by applying a simple regexp:

s/<!ENTITY (\S+)/<!ENTITY \1 &\1;/

Not all entities are named. For many, you need to specify the Unicode code page, either in decimal (▲ ▲, ▼ ▼) or hex (▲ ▲, ▼ ▼).