'rfloor;' => "\xE2\x8C\x8B",
'rlm;' => "\xE2\x80\x8F",
'rsaquo;' => "\xE2\x80\xBA",
'rsquo;' => "\xE2\x80\x99",
'sbquo;' => "\xE2\x80\x9A",
'sdot;' => "\xE2\x8B\x85",
'sim;' => "\xE2\x88\xBC",
'spades;' => "\xE2\x99\xA0",
'sub;' => "\xE2\x8A\x82",
'sube;' => "\xE2\x8A\x86",
'sum;' => "\xE2\x88\x91",
'sup;' => "\xE2\x8A\x83",
'supe;' => "\xE2\x8A\x87",
'there4;' => "\xE2\x88\xB4",
'thetasym;' => "\xCF\x91",
'thinsp;' => "\xE2\x80\x89",
'TRADE;' => "\xE2\x84\xA2",
'trade;' => "\xE2\x84\xA2",
'uArr;' => "\xE2\x87\x91",
'uarr;' => "\xE2\x86\x91",
'Upsilon;' => "\xCE\xA5",
'upsilon;' => "\xCF\x85",
'weierp;' => "\xE2\x84\x98",
'zwj;' => "\xE2\x80\x8D",
'zwnj;' => "\xE2\x80\x8C"
for ($i = 0, $match = null; $i < 9 && $this->consume() !== false; $i++)
$consumed = substr($this->consumed, 1);
if (isset($entities[$consumed]))
$this->data = substr_replace($this->data, $entities[$match], $this->position - strlen($consumed) - 1, strlen($match) + 1);
$this->position += strlen($entities[$match]) - strlen($consumed) - 1;