From 891e8927ed0d52afb767274f194a38ddb9d6a26d Mon Sep 17 00:00:00 2001 From: Aaron Shafovaloff Date: Wed, 26 Apr 2023 14:37:42 -0600 Subject: [PATCH] remove use of html-escape in instructure_equation/plugin.ts was needlessly used test plan: - existing tests pass refs EVAL-3088 flag=none Change-Id: I3e41220f24232b347cdb141a0e1f4dbd65f41acc Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317070 Reviewed-by: Jake Oeding QA-Review: Jake Oeding Product-Review: Aaron Shafovaloff Tested-by: Service Cloud Jenkins --- .../src/rce/plugins/instructure_equation/plugin.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/canvas-rce/src/rce/plugins/instructure_equation/plugin.ts b/packages/canvas-rce/src/rce/plugins/instructure_equation/plugin.ts index 74a8cf93158..7effc35f9e3 100644 --- a/packages/canvas-rce/src/rce/plugins/instructure_equation/plugin.ts +++ b/packages/canvas-rce/src/rce/plugins/instructure_equation/plugin.ts @@ -16,7 +16,6 @@ * with this program. If not, see . */ -import htmlEscape from 'escape-html' import formatMessage from '../../../format-message' import clickCallback from './clickCallback' import {IconEquationLine} from '@instructure/ui-icons/es/svg' @@ -42,12 +41,10 @@ tinymce.PluginManager.add('instructure_equation', function (ed) { }) ed.ui.registry.addToggleButton('instructure_equation', { - tooltip: htmlEscape( - formatMessage({ - default: 'Insert Math Equation', - description: 'Title for RCE button to insert a math equation', - }) - ), + tooltip: formatMessage({ + default: 'Insert Math Equation', + description: 'Title for RCE button to insert a math equation', + }), onAction: () => ed.execCommand('instructureEquation'), icon: 'equation', onSetup(buttonApi) {