fix action+add html
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user