File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import * as CustomTextState from "../states/custom-text-name";
1010import { getLanguageDisplayString } from "../utils/strings" ;
1111import Format from "../utils/format" ;
1212import { getActiveFunboxNames } from "../test/funbox/list" ;
13+ import { escapeHTML } from "../utils/misc" ;
1314
1415ConfigEvent . subscribe ( ( eventKey ) => {
1516 const configKeys : ConfigEvent . ConfigEventKey [ ] = [
@@ -79,7 +80,9 @@ export async function update(): Promise<void> {
7980 const isLong = CustomTextState . isCustomTextLong ( ) ;
8081 if ( Config . mode === "custom" && customTextName !== "" && isLong ) {
8182 $ ( ".pageTest #testModesNotice" ) . append (
82- `<div class="textButton noInteraction"><i class="fas fa-book"></i>${ customTextName } (shift + enter to save progress)</div>`
83+ `<div class="textButton noInteraction"><i class="fas fa-book"></i>${ escapeHTML (
84+ customTextName
85+ ) } (shift + enter to save progress)</div>`
8386 ) ;
8487 }
8588
You can’t perform that action at this time.
0 commit comments