Skip to content

Commit 034c4c6

Browse files
authored
Document trim prop /cc @laggingreflex
1 parent 96f8887 commit 034c4c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ Subsequent `render()`s diff against that DOM just like a normal JSX rendering fl
7979

8080
`type` - By default, content is parsed as XML. Pass `type="html"` to use an HTML parser.
8181

82+
`trim` - Trimming tries to emulate HTML semantics by default, but these differ from JSX semantics. Pass `false` to retain all whitespace, or `all` to omit all whitespace.
83+
8284
`onError` - Suppress XML/HTML parse errors and instead pass them to this function.
8385

8486
`allow-scripts` - By default, preact-markup sanitizes the rendered HTML by removing script tags. The `allow-scripts` property re-enables script tags, _executing any JavaScript code within them_.

0 commit comments

Comments
 (0)