From cec98e68ede37152d72d2df9213c8ca06cd68284 Mon Sep 17 00:00:00 2001 From: Alastair Irving <29164966+ajirving@users.noreply.github.com> Date: Sat, 15 Feb 2025 10:54:09 +0000 Subject: [PATCH] Escape SSML to correctly handle characters like & --- Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index cb1b2e5..f093eba 100644 --- a/Program.cs +++ b/Program.cs @@ -1,6 +1,7 @@ using System; using System.Diagnostics; using System.IO; +using System.Security; using System.Speech.Synthesis; using System.Text.RegularExpressions; using NAudio.Wave; @@ -491,7 +492,7 @@ private static async Task BuildSsml(string p) string ssml = @" - " + p + @" + " + SecurityElement.Escape(p) + @" "; return ssml;