diff --git a/src/utils/AppendOptions.js b/src/utils/AppendOptions.js index 64a5cee..9e7974d 100644 --- a/src/utils/AppendOptions.js +++ b/src/utils/AppendOptions.js @@ -11,13 +11,15 @@ export class AppendOptions { } if (Ut.isStr(data)) { - data.replace(/"((?:\\.|[^"\\])*)"\s*:\s*"((?:\\.|[^"\\])*)"/g, (_, rawKey, rawVal) => target.append( - new Option( - JSON.parse(`"${rawVal}"`), - JSON.parse(`"${rawKey}"`) - ) - )); + + let options = ''; + data.replace(/"((?:\\.|[^"\\])*)"\s*:\s*"((?:\\.|[^"\\])*)"/g, + (_, k, v) => (options += ``, '') + ); + + target.innerHTML = options; + return; }