
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
github.com/rnons/purescript-html-parser-halogen
A library to render raw HTML string into Halogen views. You might also be interested in purescript-markdown-it-halogen, a library to render Markdown into Halogen views.
import Html.Renderer.Halogen as RH
rawHtml :: String
rawHtml = """<a href="https://github.com">a link</a>"""
render =
...
HH.div_ [ RH.render_ rawHtml ]
It's as simple as this, in most cases you only need the render
function from Html.Renderer.Halogen
module.
This library doesn't support malformed HTML, and is prone to XSS attack. Use it only when you trust the HTML string.
You can balance and sanitize the HTML on the backend, e.g. sanitizeBalance
from xss-sanitize.
Html.Parser
parses HTML String
as HtmlNode
. Html.Renderer.Halogen
converts HtmlNode
to halogen HTML
. You can also write adapters to convert HtmlNode
to the HTML
type of other view libraries.
If you want to Html.Parser
with other view libraries, I can release it as a separate package, let me know if you are interested.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.