html-pretty-min icon indicating copy to clipboard operation
html-pretty-min copied to clipboard

Rewrites Thai characters into gibberish

Open tobiasmuehl opened this issue 6 years ago • 0 comments

If any text node includes Thai characters, the script ends up rewriting them into HTML-escaped characters, but not the right ones.

Input:

<p>โหลด-เกม</p>

Output:

<p>&agrave;&sup1;&#130;&agrave;&cedil;&laquo;&agrave;&cedil;&yen;&agrave;&cedil;&#148; &agrave;&sup1;&#128;&agrave;&cedil;&#129;&agrave;&cedil;&iexcl;</p>

tobiasmuehl avatar Jun 17 '19 22:06 tobiasmuehl