A robust HTML entities encoder/decoder with full Unicode support.
stringentitiesentityhtmlencodedecodeunicode
http://mths.be/he