treethought / flask-assistant

Framework for Building Virtual Assistants with Dialogflow and python
Apache License 2.0
379 stars 101 forks source link

Escape XML special characters #84

Closed gmolau closed 6 years ago

gmolau commented 6 years ago

Google handles quotation marks in SSML tags, but not '<', '>' and '&', which are also reserved XML (and thus SSML) characters. The xml.sax.saxutils.escape() function handles exactly these characters.

(This is the correct solution for the problem in #83.)

treethought commented 6 years ago

Thanks @gmolau!