Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/driebit/elm-html-unsafe-headers


https://github.com/driebit/elm-html-unsafe-headers

Last synced: 2 days ago
JSON representation

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.