12 lines
502 B
Markdown
12 lines
502 B
Markdown
# @welshman/content [](https://npmjs.com/package/@welshman/content)
|
|
|
|
Utilities for parsing note content.
|
|
|
|
```typescript
|
|
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>
|
|
```
|