Skip to content

Commit

Permalink
fix: parse element
Browse files Browse the repository at this point in the history
  • Loading branch information
shakogegia committed Nov 16, 2023
1 parent ee02428 commit ffd747a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parsers/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export function element(el: Document | Element | null) {
}
},
children: () => el.children,
textContent: () => el.textContent,
text: () => escape(el.textContent),
textUnsafe: () => el.textContent,
textContent: () => el?.textContent,
text: () => escape(el?.textContent),
textUnsafe: () => el?.textContent,
}
}

0 comments on commit ffd747a

Please sign in to comment.