Update readme

This commit is contained in:
Jon Staab
2024-06-11 12:50:55 -07:00
parent a73cfa5e2c
commit f2f16bc3d3
+3 -3
View File
@@ -3,9 +3,9 @@
Utilities for parsing note content.
```typescript
import {truncate, parse, render} from '@welshman/content'
import {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("")
// =>
const html = parse({content}).map(render).join("")
// => Hello&lt;br&gt;from <a href="https://coracle.tools/" target="_blank">coracle.tools/</a>! &lt;script&gt;alert('evil')&lt;/script&gt;
```