Files
welshman/packages/content
2024-06-11 12:41:56 -07:00
..
2024-06-03 15:05:37 -07:00
2024-06-11 12:41:56 -07:00
2024-06-11 12:41:56 -07:00
2024-06-11 12:41:56 -07:00
2024-06-03 15:05:37 -07:00
2024-06-03 15:05:37 -07:00

@welshman/content version

Utilities for parsing note content.

import {truncate, parse, render} from '@welshman/content'

const content = "Hello<br>from https://coracle.tools! <script>alert('evil')</script>"
const html = truncate(parse({content})).map(render).join("")
// =>