@welshman/content
v0.0.12
Published
A collection of utilities for parsing nostr note content.
Downloads
229
Readme
@welshman/content
Utilities for parsing note content.
import {parse, render} from '@welshman/content'
const content = "Hello<br>from https://coracle.tools! <script>alert('evil')</script>"
const html = parse({content}).map(render).join("")
// => Hello<br>from <a href="https://coracle.tools/" target="_blank">coracle.tools/</a>! <script>alert('evil')</script>