Create changed  character code

had  problem with my  editor to accept the character code so  changed it to HTML Entity (decimal) instead.
this is my first try  posting code github and  i  have no idea  how to use  it, i have   used lots of  code from github but  always  hard time  use github  don't  understand why they have made it so complicated