Skip to content

Commit

Permalink
fix(all): Strip all HTML from Bot Input.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 30, 2020
1 parent 3e9d760 commit dceb0fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -765,8 +765,8 @@ 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.

const key = min.instance.spellcheckerKey ? min.instance.spellcheckerKey : min.instance.spellcheckerKey;
Expand Down

0 comments on commit dceb0fd

Please sign in to comment.