fix(all): Strip all HTML from Bot Input.

This commit is contained in:
Rodrigo Rodriguez 2020-10-30 12:54:07 -03:00
parent 3e9d76059e
commit dceb0fd1c1

View file

@ -765,7 +765,7 @@ export class GBMinService {
await step.continueDialog();
} else {
let text = context.activity.text;
text = text.replace(/<\/?[^>]+(>|$)/g, "");
text = text.replace(/<([^>]+?)([^>]*?)>(.*?)<\/\1>/ig, "");
// Spells check the input text before translating.