Skip to content

Commit

Permalink
Remove entities option, use characterReferences
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 6, 2023
1 parent 1470a23 commit 15b1618
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@
* Not used in the SVG space.
*
* > 👉 **Note**: boolean attributes (such as `hidden`) are always collapsed.
* @property {CharacterReferences | null | undefined} [entities]
* Deprecated: please use `characterReferences` (optional).
*
* To do: remove.
* @property {boolean | null | undefined} [omitOptionalTags=false]
* Omit optional opening and closing tags (default: `false`).
*
Expand Down Expand Up @@ -135,7 +131,7 @@
* @typedef {'"' | "'"} Quote
* HTML quotes for attribute values.
*
* @typedef {Omit<Required<{[key in keyof Options]: Exclude<Options[key], null | undefined>}>, 'entities' | 'space' | 'quote'>} Settings
* @typedef {Omit<Required<{[key in keyof Options]: Exclude<Options[key], null | undefined>}>, 'space' | 'quote'>} Settings
*
* @typedef {'html' | 'svg'} Space
* Namespace.
Expand Down Expand Up @@ -208,9 +204,7 @@ export function toHtml(tree, options) {
allowDangerousHtml: options_.allowDangerousHtml || false,
voids: options_.voids || htmlVoidElements,
characterReferences:
options_.characterReferences ||
options_.entities ||
emptyCharacterReferences,
options_.characterReferences || emptyCharacterReferences,
closeSelfClosing: options_.closeSelfClosing || false,
closeEmptyElements: options_.closeEmptyElements || false
},
Expand Down

0 comments on commit 15b1618

Please sign in to comment.