Skip to content

Commit 07a46d3

Browse files
Fix: Add missing DomPurify option
1 parent ca0be04 commit 07a46d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface DOMConfig {
4545
FORBID_ATTR?: string[]
4646
FORBID_TAGS?: string[]
4747
FORCE_BODY?: boolean
48+
IN_PLACE?: boolean
4849
KEEP_CONTENT?: boolean
4950
RETURN_DOM?: boolean
5051
RETURN_DOM_FRAGMENT?: boolean

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as dom from './dom'
33
import { override } from './override'
44
import { render } from './react'
55

6-
export function parse(html: string, userOptions?: Config): React.ReactNode[] {
6+
export function parse(html: string, userOptions?: Config): React.ReactNode[] | React.ReactFragment {
77
if (typeof html !== 'string') {
88
throw new TypeError('First argument must be a string.')
99
}

0 commit comments

Comments
 (0)