Fix comma escape
This commit is contained in:
parent
60cac58043
commit
5a4553e17c
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ export function clean(text) {
|
||||||
|
|
||||||
// textEncode(string) to encode characters for image processing
|
// textEncode(string) to encode characters for image processing
|
||||||
export function textEncode(string) {
|
export function textEncode(string) {
|
||||||
return string.replaceAll("&", "&").replaceAll(">", ">").replaceAll("<", "<").replaceAll("\"", """).replaceAll("'", "'").replaceAll("\\n", "\n").replaceAll("\\:", ":");
|
return string.replaceAll("&", "&").replaceAll(">", ">").replaceAll("<", "<").replaceAll("\"", """).replaceAll("'", "'").replaceAll("\\n", "\n").replaceAll("\\:", ":").replaceAll("\\,", ",");
|
||||||
}
|
}
|
||||||
|
|
||||||
// set activity (a.k.a. the gamer code)
|
// set activity (a.k.a. the gamer code)
|
||||||
|
|
Loading…
Reference in a new issue