Fix comma escape

This commit is contained in:
Essem 2022-12-18 19:19:53 -06:00
parent 60cac58043
commit 5a4553e17c
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -49,7 +49,7 @@ export function clean(text) {
// textEncode(string) to encode characters for image processing
export function textEncode(string) {
return string.replaceAll("&", "&amp;").replaceAll(">", "&gt;").replaceAll("<", "&lt;").replaceAll("\"", "&quot;").replaceAll("'", "&apos;").replaceAll("\\n", "\n").replaceAll("\\:", ":");
return string.replaceAll("&", "&amp;").replaceAll(">", "&gt;").replaceAll("<", "&lt;").replaceAll("\"", "&quot;").replaceAll("'", "&apos;").replaceAll("\\n", "\n").replaceAll("\\:", ":").replaceAll("\\,", ",");
}
// set activity (a.k.a. the gamer code)