Clean HTML from wyptb

This commit is contained in:
Dragon Fire
2020-10-12 16:48:55 -04:00
parent 2053ec8ce0
commit 8b04c176c4
5 changed files with 9 additions and 9 deletions
@@ -1,7 +1,7 @@
const Command = require('../../structures/Command');
const request = require('node-superfetch');
const { stripIndents } = require('common-tags');
const { verify } = require('../../util/Util');
const { verify, cleanHTML } = require('../../util/Util');
module.exports = class WillYouPressTheButtonCommand extends Command {
constructor(client) {
@@ -28,7 +28,7 @@ module.exports = class WillYouPressTheButtonCommand extends Command {
try {
const dilemma = await this.fetchDilemma();
await msg.reply(stripIndents`
**${dilemma.txt1}** but **${dilemma.txt2}**
**${cleanHTML(dilemma.txt1)}** but **${cleanHTML(dilemma.txt2)}**
Will you press the button?
_Respond with [y]es or [n]o to continue._