fix(all): Remove HTML from Input.

This commit is contained in:
Rodrigo Rodriguez 2020-10-30 13:04:46 -03:00
parent c823c1699b
commit 03161dad88

View file

@ -115,6 +115,7 @@ export class AskDialog extends IGBDialog {
}; // TODO: Encapsulate.
let text = step.result;
text = text.replace(/<([^>]+?)([^>]*?)>(.*?)<\/\1>/ig, "");
let locale = 'en';
const minBoot = GBServer.globals.minBoot as any;
@ -190,6 +191,7 @@ export class AskDialog extends IGBDialog {
async step => {
const user = await min.userProfile.get(step.context, {});
let text = step.options.query;
text = text.replace(/<([^>]+?)([^>]*?)>(.*?)<\/\1>/ig, "");
let sec = new SecService();
const member = step.context.activity.from;