Character Reference Converter

source: http://snippets.feb19.jp/?p=247