Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/driebit/elm-html-unsafe-headers
https://github.com/driebit/elm-html-unsafe-headers
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/driebit/elm-html-unsafe-headers
- Owner: driebit
- License: mit
- Created: 2018-05-18T12:07:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-18T12:50:38.000Z (over 6 years ago)
- Last Synced: 2023-08-08T20:39:06.512Z (over 1 year ago)
- Language: Elm
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elm-Html-UnsafeHeaders
A library that defines HTML headers with unescaped text.
Whereas the standard headers escape the text (`Html.h1 [] [Html.text "this & that"]` renders as `
this & that
`), these headers do not (`Html.UnsafeHeaders.h1 [] "this & that"` renders as `this & that
`). The latter is unsafe because if the text is user-generated, then a malicious user can insert any HTML or even JavaScript into a page, so use with care.