fix(all): Strip all HTML from Bot Input.
This commit is contained in:
parent
3e9d76059e
commit
dceb0fd1c1
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue