<?php /** * This should be a complete list of all HTML entities, mapped to their UTF-8 character codes. * * @author A. Grandt * @copyright A. Grandt 2009-2013 * @license GNU LGPL, Attribution required for commercial implementations, requested for everything else. * @version 3.00 */ global $htmlEntities; $htmlEntities = array(); $htmlEntities["""] ="\x22"; // " ((double) quotation mark) $htmlEntities["&"] ="\x26"; // & (ampersand) $htmlEntities["'"] ="\x27"; // ' (apostrophe = apostrophe-quote) $htmlEntities["<"] ="\x3C"; // < (less-than sign) $htmlEntities[">"] ="\x3E"; // > (greater-than sign) $htmlEntities[" "] ="\xC2\xA0"; //   (non-breaking space) $htmlEntities["¡"] ="\xC2\xA1"; // ¡ (inverted exclamation mark) $htmlEntities["¢"] ="\xC2\xA2"; // ¢ (cent) $htmlEntities["£"] ="\xC2\xA3"; // £ (pound) $htmlEntities["¤"] ="\xC2\xA4"; // ¤ (currency) $htmlEntities["¥"] ="\xC2\xA5"; // ¥ (yen) $htmlEntities["¦"] ="\xC2\xA6"; // ¦ (broken vertical bar) $htmlEntities["§"] ="\xC2\xA7"; // § (section) $htmlEntities["¨"] ="\xC2\xA8"; // ¨ (spacing diaeresis) $htmlEntities["©"] ="\xC2\xA9"; // © (copyright) $htmlEntities["ª"] ="\xC2\xAA"; // ª (feminine ordinal indicator) $htmlEntities["«"] ="\xC2\xAB"; // « (angle quotation mark (left)) $htmlEntities["¬"] ="\xC2\xAC"; // ¬ (negation) $htmlEntities["­"] ="\xC2\xAD"; // ­ (soft hyphen) $htmlEntities["®"] ="\xC2\xAE"; // ® (registered trademark) $htmlEntities["¯"] ="\xC2\xAF"; // ¯ (spacing macron) $htmlEntities["°"] ="\xC2\xB0"; // ° (degree) $htmlEntities["±"] ="\xC2\xB1"; // ± (plus-or-minus) $htmlEntities["²"] ="\xC2\xB2"; // ² (superscript 2) $htmlEntities["³"] ="\xC2\xB3"; // ³ (superscript 3) $htmlEntities["´"] ="\xC2\xB4"; // ´ (spacing acute) $htmlEntities["µ"] ="\xC2\xB5"; // µ (micro) $htmlEntities["¶"] ="\xC2\xB6"; // ¶ (paragraph) $htmlEntities["·"] ="\xC2\xB7"; // · (middle dot) $htmlEntities["¸"] ="\xC2\xB8"; // ¸ (spacing cedilla) $htmlEntities["¹"] ="\xC2\xB9"; // ¹ (superscript 1) $htmlEntities["º"] ="\xC2\xBA"; // º (masculine ordinal indicator) $htmlEntities["»"] ="\xC2\xBB"; // » (angle quotation mark (right)) $htmlEntities["¼"] ="\xC2\xBC"; // ¼ (fraction 1/4) $htmlEntities["½"] ="\xC2\xBD"; // ½ (fraction 1/2) $htmlEntities["¾"] ="\xC2\xBE"; // ¾ (fraction 3/4) $htmlEntities["¿"] ="\xC2\xBF"; // ¿ (inverted question mark) $htmlEntities["À"] ="\xC3\x80"; // À (capital a, grave accent) $htmlEntities["Á"] ="\xC3\x81"; // Á (capital a, acute accent) $htmlEntities["Â"] ="\xC3\x82"; //  (capital a, circumflex accent) $htmlEntities["Ã"] ="\xC3\x83"; // à (capital a, tilde) $htmlEntities["Ä"] ="\xC3\x84"; // Ä (capital a, umlaut mark) $htmlEntities["Å"] ="\xC3\x85"; // Å (capital a, ring) $htmlEntities["Æ"] ="\xC3\x86"; // Æ (capital ae) $htmlEntities["Ç"] ="\xC3\x87"; // Ç (capital c, cedilla) $htmlEntities["È"] ="\xC3\x88"; // È (capital e, grave accent) $htmlEntities["É"] ="\xC3\x89"; // É (capital e, acute accent) $htmlEntities["Ê"] ="\xC3\x8A"; // Ê (capital e, circumflex accent) $htmlEntities["Ë"] ="\xC3\x8B"; // Ë (capital e, umlaut mark) $htmlEntities["Ì"] ="\xC3\x8C"; // Ì (capital i, grave accent) $htmlEntities["Í"] ="\xC3\x8D"; // Í (capital i, acute accent) $htmlEntities["Î"] ="\xC3\x8E"; // Î (capital i, circumflex accent) $htmlEntities["Ï"] ="\xC3\x8F"; // Ï (capital i, umlaut mark) $htmlEntities["Ð"] ="\xC3\x90"; // Ð (capital eth, Icelandic) $htmlEntities["Ñ"] ="\xC3\x91"; // Ñ (capital n, tilde) $htmlEntities["Ò"] ="\xC3\x92"; // Ò (capital o, grave accent) $htmlEntities["Ó"] ="\xC3\x93"; // Ó (capital o, acute accent) $htmlEntities["Ô"] ="\xC3\x94"; // Ô (capital o, circumflex accent) $htmlEntities["Õ"] ="\xC3\x95"; // Õ (capital o, tilde) $htmlEntities["Ö"] ="\xC3\x96"; // Ö (capital o, umlaut mark) $htmlEntities["×"] ="\xC3\x97"; // × (multiplication) $htmlEntities["Ø"] ="\xC3\x98"; // Ø (capital o, slash) $htmlEntities["Ù"] ="\xC3\x99"; // Ù (capital u, grave accent) $htmlEntities["Ú"] ="\xC3\x9A"; // Ú (capital u, acute accent) $htmlEntities["Û"] ="\xC3\x9B"; // Û (capital u, circumflex accent) $htmlEntities["Ü"] ="\xC3\x9C"; // Ü (capital u, umlaut mark) $htmlEntities["Ý"] ="\xC3\x9D"; // Ý (capital y, acute accent) $htmlEntities["Þ"] ="\xC3\x9E"; // Þ (capital THORN, Icelandic) $htmlEntities["ß"] ="\xC3\x9F"; // ß (small sharp s, German) $htmlEntities["à"] ="\xC3\xA0"; // à (small a, grave accent) $htmlEntities["á"] ="\xC3\xA1"; // á (small a, acute accent) $htmlEntities["â"] ="\xC3\xA2"; // â (small a, circumflex accent) $htmlEntities["ã"] ="\xC3\xA3"; // ã (small a, tilde) $htmlEntities["ä"] ="\xC3\xA4"; // ä (small a, umlaut mark) $htmlEntities["å"] ="\xC3\xA5"; // å (small a, ring) $htmlEntities["æ"] ="\xC3\xA6"; // æ (small ae) $htmlEntities["ç"] ="\xC3\xA7"; // ç (small c, cedilla) $htmlEntities["è"] ="\xC3\xA8"; // è (small e, grave accent) $htmlEntities["é"] ="\xC3\xA9"; // é (small e, acute accent) $htmlEntities["ê"] ="\xC3\xAA"; // ê (small e, circumflex accent) $htmlEntities["ë"] ="\xC3\xAB"; // ë (small e, umlaut mark) $htmlEntities["ì"] ="\xC3\xAC"; // ì (small i, grave accent) $htmlEntities["í"] ="\xC3\xAD"; // í (small i, acute accent) $htmlEntities["î"] ="\xC3\xAE"; // î (small i, circumflex accent) $htmlEntities["ï"] ="\xC3\xAF"; // ï (small i, umlaut mark) $htmlEntities["ð"] ="\xC3\xB0"; // ð (small eth, Icelandic) $htmlEntities["ñ"] ="\xC3\xB1"; // ñ (small n, tilde) $htmlEntities["ò"] ="\xC3\xB2"; // ò (small o, grave accent) $htmlEntities["ó"] ="\xC3\xB3"; // ó (small o, acute accent) $htmlEntities["ô"] ="\xC3\xB4"; // ô (small o, circumflex accent) $htmlEntities["õ"] ="\xC3\xB5"; // õ (small o, tilde) $htmlEntities["ö"] ="\xC3\xB6"; // ö (small o, umlaut mark) $htmlEntities["÷"] ="\xC3\xB7"; // ÷ (division) $htmlEntities["ø"] ="\xC3\xB8"; // ø (small o, slash) $htmlEntities["ù"] ="\xC3\xB9"; // ù (small u, grave accent) $htmlEntities["ú"] ="\xC3\xBA"; // ú (small u, acute accent) $htmlEntities["û"] ="\xC3\xBB"; // û (small u, circumflex accent) $htmlEntities["ü"] ="\xC3\xBC"; // ü (small u, umlaut mark) $htmlEntities["ý"] ="\xC3\xBD"; // ý (small y, acute accent) $htmlEntities["þ"] ="\xC3\xBE"; // þ (small thorn, Icelandic) $htmlEntities["ÿ"] ="\xC3\xBF"; // ÿ (small y, umlaut mark) $htmlEntities["Œ"] ="\xC5\x92"; // Œ (capital ligature OE) $htmlEntities["œ"] ="\xC5\x93"; // œ (small ligature oe) $htmlEntities["Š"] ="\xC5\xA0"; // Š (capital S with caron) $htmlEntities["š"] ="\xC5\xA1"; // š (small S with caron) $htmlEntities["Ÿ"] ="\xC5\xB8"; // Ÿ (capital Y with diaeres) $htmlEntities["ƒ"] ="\xC6\x92"; // ƒ (f with hook) $htmlEntities["ˆ"] ="\xCB\x86"; // ˆ (modifier letter circumflex accent) $htmlEntities["˜"] ="\xCB\x9C"; // ˜ (small tilde) $htmlEntities["Α"] ="\xCE\x91"; // Α (Alpha) $htmlEntities["Β"] ="\xCE\x92"; // Β (Beta) $htmlEntities["Γ"] ="\xCE\x93"; // Γ (Gamma) $htmlEntities["Δ"] ="\xCE\x94"; // Δ (Delta) $htmlEntities["Ε"] ="\xCE\x95"; // Ε (Epsilon) $htmlEntities["Ζ"] ="\xCE\x96"; // Ζ (Zeta) $htmlEntities["Η"] ="\xCE\x97"; // Η (Eta) $htmlEntities["Θ"] ="\xCE\x98"; // Θ (Theta) $htmlEntities["Ι"] ="\xCE\x99"; // Ι (Iota) $htmlEntities["Κ"] ="\xCE\x9A"; // Κ (Kappa) $htmlEntities["Λ"] ="\xCE\x9B"; // Λ (Lambda) $htmlEntities["Μ"] ="\xCE\x9C"; // Μ (Mu) $htmlEntities["Ν"] ="\xCE\x9D"; // Ν (Nu) $htmlEntities["Ξ"] ="\xCE\x9E"; // Ξ (Xi) $htmlEntities["Ο"] ="\xCE\x9F"; // Ο (Omicron) $htmlEntities["Π"] ="\xCE\xA0"; // Π (Pi) $htmlEntities["Ρ"] ="\xCE\xA1"; // Ρ (Rho) $htmlEntities["Σ"] ="\xCE\xA3"; // Σ (Sigma) $htmlEntities["Τ"] ="\xCE\xA4"; // Τ (Tau) $htmlEntities["Υ"] ="\xCE\xA5"; // Υ (Upsilon) $htmlEntities["Φ"] ="\xCE\xA6"; // Φ (Phi) $htmlEntities["Χ"] ="\xCE\xA7"; // Χ (Chi) $htmlEntities["Ψ"] ="\xCE\xA8"; // Ψ (Psi) $htmlEntities["Ω"] ="\xCE\xA9"; // Ω (Omega) $htmlEntities["α"] ="\xCE\xB1"; // α (alpha) $htmlEntities["β"] ="\xCE\xB2"; // β (beta) $htmlEntities["γ"] ="\xCE\xB3"; // γ (gamma) $htmlEntities["δ"] ="\xCE\xB4"; // δ (delta) $htmlEntities["ε"] ="\xCE\xB5"; // ε (epsilon) $htmlEntities["ζ"] ="\xCE\xB6"; // ζ (zeta) $htmlEntities["η"] ="\xCE\xB7"; // η (eta) $htmlEntities["θ"] ="\xCE\xB8"; // θ (theta) $htmlEntities["ι"] ="\xCE\xB9"; // ι (iota) $htmlEntities["κ"] ="\xCE\xBA"; // κ (kappa) $htmlEntities["λ"] ="\xCE\xBB"; // λ (lambda) $htmlEntities["μ"] ="\xCE\xBC"; // μ (mu) $htmlEntities["ν"] ="\xCE\xBD"; // ν (nu) $htmlEntities["ξ"] ="\xCE\xBE"; // ξ (xi) $htmlEntities["ο"] ="\xCE\xBF"; // ο (omicron) $htmlEntities["π"] ="\xCF\x80"; // π (pi) $htmlEntities["ρ"] ="\xCF\x81"; // ρ (rho) $htmlEntities["ς"] ="\xCF\x82"; // ς (sigmaf) $htmlEntities["σ"] ="\xCF\x83"; // σ (sigma) $htmlEntities["τ"] ="\xCF\x84"; // τ (tau) $htmlEntities["υ"] ="\xCF\x85"; // υ (upsilon) $htmlEntities["φ"] ="\xCF\x86"; // φ (phi) $htmlEntities["χ"] ="\xCF\x87"; // χ (chi) $htmlEntities["ψ"] ="\xCF\x88"; // ψ (psi) $htmlEntities["ω"] ="\xCF\x89"; // ω (omega) $htmlEntities["ϑ"] ="\xCF\x91"; // ϑ (theta symbol) $htmlEntities["ϒ"] ="\xCF\x92"; // ϒ (upsilon symbol) $htmlEntities["ϖ"] ="\xCF\x96"; // ϖ (pi symbol) $htmlEntities[" "] ="\xE2\x80\x82"; //   (en space) $htmlEntities[" "] ="\xE2\x80\x83"; //   (em space) $htmlEntities[" "] ="\xE2\x80\x89"; //   (thin space) $htmlEntities["‌"] ="ā\xE2\x80\x8C"; // ‌ (zero width non-joiner) $htmlEntities["‍"] ="\xE2\x80\x8Dā"; // ‍ (zero width joiner) $htmlEntities["‎"] ="ā\xE2\x80\x8E"; // ‎ (left-to-right mark) $htmlEntities["‏"] ="\xE2\x80\x8F"; // ‏ (right-to-left mark) $htmlEntities["–"] ="\xE2\x80\x93"; // – (en dash) $htmlEntities["—"] ="\xE2\x80\x94"; // — (em dash) $htmlEntities["‘"] ="\xE2\x80\x98"; // ‘ (left single quotation mark) $htmlEntities["’"] ="\xE2\x80\x99"; // ’ (right single quotation mark) $htmlEntities["‚"] ="\xE2\x80\x9A"; // ‚ (single low-9 quotation mark) $htmlEntities["“"] ="\xE2\x80\x9C"; // “ (left double quotation mark) $htmlEntities["”"] ="\xE2\x80\x9D"; // ” (right double quotation mark) $htmlEntities["„"] ="\xE2\x80\x9E"; // „ (double low-9 quotation mark) $htmlEntities["†"] ="\xE2\x80\xA0"; // † (dagger) $htmlEntities["‡"] ="\xE2\x80\xA1"; // ‡ (double dagger) $htmlEntities["•"] ="\xE2\x80\xA2"; // • (bullet) $htmlEntities["…"] ="\xE2\x80\xA6"; // … (horizontal ellipsis) $htmlEntities["‰"] ="\xE2\x80\xB0"; // ‰ (per mille) $htmlEntities["′"] ="\xE2\x80\xB2"; // ′ (minutes or prime) $htmlEntities["″"] ="\xE2\x80\xB3"; // ″ (seconds or Double Prime) $htmlEntities["‹"] ="\xE2\x80\xB9"; // ‹ (single left angle quotation) $htmlEntities["›"] ="\xE2\x80\xBA"; // › (single right angle quotation) $htmlEntities["‾"] ="\xE2\x80\xBE"; // ‾ (overline) $htmlEntities["⁄"] ="\xE2\x81\x84"; // ⁄ (fraction slash) $htmlEntities["€"] ="\xE2\x82\xAC"; // € (euro) $htmlEntities["ℑ"] ="\xE2\x84\x91"; // ℑ (blackletter capital I) $htmlEntities["℘"] ="\xE2\x84\x98"; // ℘ (script capital P) $htmlEntities["ℜ"] ="\xE2\x84\x9C"; // ℜ (blackletter capital R) $htmlEntities["™"] ="\xE2\x84\xA2"; // ™ (trademark) $htmlEntities["ℵ"] ="\xE2\x84\xB5"; // ℵ (alef) $htmlEntities["←"] ="\xE2\x86\x90"; // ← (left arrow) $htmlEntities["↑"] ="\xE2\x86\x91"; // ↑ (up arrow) $htmlEntities["→"] ="\xE2\x86\x92"; // → (right arrow) $htmlEntities["↓"] ="\xE2\x86\x93"; // ↓ (down arrow) $htmlEntities["↔"] ="\xE2\x86\x94"; // ↔ (left right arrow) $htmlEntities["↵"] ="\xE2\x86\xB5"; // ↵ (carriage return arrow) $htmlEntities["⇐"] ="\xE2\x87\x90"; // ⇐ (left double arrow) $htmlEntities["⇑"] ="\xE2\x87\x91"; // ⇑ (up double arrow) $htmlEntities["⇒"] ="\xE2\x87\x92"; // ⇒ (right double arrow) $htmlEntities["⇓"] ="\xE2\x87\x93"; // ⇓ (down double arrow) $htmlEntities["⇔"] ="\xE2\x87\x94"; // ⇔ (left right double arrow) $htmlEntities["∀"] ="\xE2\x88\x80"; // ∀ (for all) $htmlEntities["∂"] ="\xE2\x88\x82"; // ∂ (partial differential) $htmlEntities["∃"] ="\xE2\x88\x83"; // ∃ (there exists) $htmlEntities["∅"] ="\xE2\x88\x85"; // ∅ (empty set) $htmlEntities["∇"] ="\xE2\x88\x87"; // ∇ (backward difference) $htmlEntities["∈"] ="\xE2\x88\x88"; // ∈ (element of) $htmlEntities["∉"] ="\xE2\x88\x89"; // ∉ (not an element of) $htmlEntities["∋"] ="\xE2\x88\x8B"; // ∋ (ni = contains as member) $htmlEntities["∏"] ="\xE2\x88\x8F"; // ∏ (n-ary product) $htmlEntities["∑"] ="\xE2\x88\x91"; // ∑ (n-ary sumation) $htmlEntities["−"] ="\xE2\x88\x92"; // − (minus) $htmlEntities["∗"] ="\xE2\x88\x97"; // ∗ (asterisk operator) $htmlEntities["√"] ="\xE2\x88\x9A"; // √ (square root) $htmlEntities["∝"] ="\xE2\x88\x9D"; // ∝ (proportional to) $htmlEntities["∞"] ="\xE2\x88\x9E"; // ∞ (infinity) $htmlEntities["∠"] ="\xE2\x88\xA0"; // ∠ (angle) $htmlEntities["∧"] ="\xE2\x88\xA7"; // ∧ (logical and) $htmlEntities["∨"] ="\xE2\x88\xA8"; // ∨ (logical or) $htmlEntities["∩"] ="\xE2\x88\xA9"; // ∩ (intersection) $htmlEntities["∪"] ="\xE2\x88\xAA"; // ∪ (union) $htmlEntities["∫"] ="\xE2\x88\xAB"; // ∫ (integral) $htmlEntities["∴"] ="\xE2\x88\xB4"; // ∴ (therefore) $htmlEntities["∼"] ="\xE2\x88\xBC"; // ∼ (similar to) $htmlEntities["≅"] ="\xE2\x89\x85"; // ≅ (congruent to) $htmlEntities["≈"] ="\xE2\x89\x88"; // ≈ (approximately equal) $htmlEntities["≠"] ="\xE2\x89\xA0"; // ≠ (not equal) $htmlEntities["≡"] ="\xE2\x89\xA1"; // ≡ (equivalent) $htmlEntities["≤"] ="\xE2\x89\xA4"; // ≤ (less or equal) $htmlEntities["≥"] ="\xE2\x89\xA5"; // ≥ (greater or equal) $htmlEntities["⊂"] ="\xE2\x8A\x82"; // ⊂ (subset of) $htmlEntities["⊃"] ="\xE2\x8A\x83"; // ⊃ (superset of) $htmlEntities["⊄"] ="\xE2\x8A\x84"; // ⊄ (not subset of) $htmlEntities["⊆"] ="\xE2\x8A\x86"; // ⊆ (subset or equal) $htmlEntities["⊇"] ="\xE2\x8A\x87"; // ⊇ (superset or equal) $htmlEntities["⊕"] ="\xE2\x8A\x95"; // ⊕ (circled plus) $htmlEntities["⊗"] ="\xE2\x8A\x87"; // ⊗ (circled times) $htmlEntities["⊥"] ="\xE2\x8A\xA5"; // ⊥ (perpendicular) $htmlEntities["⋅"] ="\xE2\x8C\x85"; // ⋅ (dot operator) $htmlEntities["⌈"] ="\xE2\x8C\x88"; // ⌈ (left ceiling) $htmlEntities["⌉"] ="\xE2\x8C\x89"; // ⌉ (right ceiling) $htmlEntities["⌊"] ="\xE2\x8C\x8A"; // ⌊ (left floor) $htmlEntities["⌋"] ="\xE2\x8C\x8B"; // ⌋ (right floor) $htmlEntities["⟨"] ="\xE2\x8C\xA9"; // 〈 (left angle bracket = bra) $htmlEntities["⟩"] ="\xE2\x8C\xAA"; // 〉 (right angle bracket = ket) $htmlEntities["◊"] ="\xE2\x97\x8A"; // ◊ (lozenge) $htmlEntities["♠"] ="\xE2\x99\xA0"; // ♠ (spade) $htmlEntities["♣"] ="\xE2\x99\xA3"; // ♣ (club) $htmlEntities["♥"] ="\xE2\x99\xA5"; // ♥ (heart) $htmlEntities["♦"] ="\xE2\x99\xA6"; // ♦ (diamond) ?>