package breakwater_test import ( "fmt" "git.golem15.com/golem15/summercms/modules/breakwater" ) func ExampleRender() { // A forum post: store the rendered HTML on write and serve it as is. post := "See [the docs](https://example.com/docs) and this.\n\n" html := breakwater.Render(post) fmt.Println(html) // Output: //

See the docs and this.

} func ExamplePurify() { // Content stored as HTML: the same allow-list, no Markdown pass. stored := `

Hi there

call` clean := breakwater.Purify(stored) fmt.Println(clean) // Output: //

Hi there

call }