Sanitize tracker summaries

The summaries can include invalid html tags which caused issues when trying to render them since these tags do not exist.

Known issue:
The invalid tags will get escaped, however, when they include a space (e.g. "<Author's Notes>" everything after the space is missing (e.g. will be "<Author's>")
This commit is contained in:
schroda
2024-05-13 03:28:46 +02:00
parent c5d8b20528
commit d726793e3d
3 changed files with 51 additions and 5 deletions

View File

@@ -57,6 +57,7 @@
"react-lazily": "0.9.2",
"react-router-dom": "6.23.1",
"react-virtuoso": "4.7.10",
"sanitize-html": "2.13.0",
"stylis": "4.3.2",
"stylis-plugin-rtl": "2.1.1",
"use-long-press": "3.2.0",
@@ -72,6 +73,7 @@
"@types/react": "18.3.1",
"@types/react-beautiful-dnd": "13.1.8",
"@types/react-dom": "18.3.0",
"@types/sanitize-html": "2.11.0",
"@types/stylis": "4.2.6",
"@types/yargs": "17.0.32",
"@typescript-eslint/eslint-plugin": "7.8.0",