So I started writing some functions to do this but i cannot be the first one to think of this or what to accomplish this...in javascript.

So for utf8 to html I'm doing something like this


...