feat: sanitize HTML in footer

moved sanitize function into a separate file including some simple tests

closes #91
This commit is contained in:
Danny Koppenhagen
2022-01-10 08:32:19 +01:00
committed by Bastian
parent 5a5928f2dd
commit e0113c446d
5 changed files with 45 additions and 17 deletions

View File

@@ -186,6 +186,8 @@ To add a footnote to the footer, create a public folder in your application and
}
```
> The footnote information may include HTML like `<a href="https://foo.bar">My Link</a>` which will be sanitized.
### Add a help page with explanations
To add a help page, create a public folder in your application and put a `messages.json` in it.
```json
@@ -252,6 +254,8 @@ To add a help page, create a public folder in your application and put a `messag
}
```
> The information in `description`s for `rings` and `quadrants` as well as the `values` for `paragraphs` may include HTML like `<a href="https://foo.bar">My Link</a>` which will be sanitized.
> For more information see the source code of the [Messages Context](./src/context/MessagesContext/index.tsx).
## Development