From 91547d603dc2fba956480f969c8698c77ce57f6e Mon Sep 17 00:00:00 2001 From: shenghuang147 <65714801+shenghuang147@users.noreply.github.com> Date: Fri, 8 Dec 2023 09:57:13 +0800 Subject: [PATCH] chore: escape MSSL predefined characters in text (#76) * chore: escape MSSL predefined characters in text * chore: add " predefined character escape --- public/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 94e9274..20ede0e 100644 --- a/public/index.html +++ b/public/index.html @@ -162,6 +162,7 @@ } function createSSML(text, voiceName) { + text = text.replaceAll('&', '&').replaceAll('<', '<').replaceAll('>', '>').replaceAll('\'', ''').replaceAll('"', '"'); let ssml = '\ \ \ @@ -238,4 +239,4 @@ - \ No newline at end of file +