fix action+add html

This commit is contained in:
_Bastler
2021-05-30 20:00:41 +02:00
parent 85c9393962
commit e43fe7cebd
4 changed files with 87 additions and 7 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import type { UserInputManager } from "../Phaser/UserInput/UserInputManager";
import {HtmlUtils} from "./HtmlUtils";
const sanitizeHtml = require('sanitize-html');
export enum LayoutMode {
// All videos are displayed on the right side of the screen. If there is a screen sharing, it is displayed in the middle.
@@ -331,7 +332,7 @@ class LayoutManager {
p.classList.add('action-body');
p.classList.add('nes-btn');
p.classList.add('is-dark');
p.innerText = text;
p.innerHTML = sanitizeHtml(text);
const div = document.createElement('div');
div.classList.add('action');