File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 6464 * Not used in the SVG space.
6565 *
6666 * > 👉 **Note**: boolean attributes (such as `hidden`) are always collapsed.
67- * @property {CharacterReferences | null | undefined } [entities]
68- * Deprecated: please use `characterReferences` (optional).
69- *
70- * To do: remove.
7167 * @property {boolean | null | undefined } [omitOptionalTags=false]
7268 * Omit optional opening and closing tags (default: `false`).
7369 *
135131 * @typedef {'"' | "'" } Quote
136132 * HTML quotes for attribute values.
137133 *
138- * @typedef {Omit<Required<{[key in keyof Options]: Exclude<Options[key], null | undefined>}>, 'entities' | ' space' | 'quote'> } Settings
134+ * @typedef {Omit<Required<{[key in keyof Options]: Exclude<Options[key], null | undefined>}>, 'space' | 'quote'> } Settings
139135 *
140136 * @typedef {'html' | 'svg' } Space
141137 * Namespace.
@@ -208,9 +204,7 @@ export function toHtml(tree, options) {
208204 allowDangerousHtml : options_ . allowDangerousHtml || false ,
209205 voids : options_ . voids || htmlVoidElements ,
210206 characterReferences :
211- options_ . characterReferences ||
212- options_ . entities ||
213- emptyCharacterReferences ,
207+ options_ . characterReferences || emptyCharacterReferences ,
214208 closeSelfClosing : options_ . closeSelfClosing || false ,
215209 closeEmptyElements : options_ . closeEmptyElements || false
216210 } ,
You can’t perform that action at this time.
0 commit comments