Support v14: commandes dans chatMessage en html

This commit is contained in:
2026-04-29 22:34:06 +02:00
parent 423dcaf53e
commit e9e2eba9b5
3 changed files with 21 additions and 14 deletions

View File

@@ -24,6 +24,13 @@ export class Misc {
return text.charAt(0).toLowerCase() + text.slice(1);
}
static stripHtml(html)
{
const tmp = document.createElement("DIV")
tmp.innerHTML = html
return tmp.textContent || tmp.innerText || ""
}
static toSignedString(number) {
const value = parseInt(number)
const isPositiveNumber = value != NaN && value > 0;