Skip to content

Commit 1b14fa7

Browse files
committed
include currency entities in default list
1 parent e41e99f commit 1b14fa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xmlparser/OrderedObjParser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import toNumber from "strnum";
88
import getIgnoreAttributesFn from "../ignoreAttributes.js";
99
import { Expression, Matcher } from 'path-expression-matcher';
1010
import { ExpressionSet } from 'path-expression-matcher';
11-
import EntityReplacer, { COMMON_HTML, NUMERIC_ENTITIES } from '@nodable/entities';
11+
import EntityReplacer, { COMMON_HTML, NUMERIC_ENTITIES, CURRENCY_ENTITIES } from '@nodable/entities';
1212

1313
// const regx =
1414
// '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)'
@@ -89,7 +89,7 @@ export default class OrderedObjParser {
8989
this.entityReplacer = new EntityReplacer({
9090
default: true,
9191
// amp: true,
92-
system: this.options.htmlEntities ? { ...COMMON_HTML, ...NUMERIC_ENTITIES } : {},
92+
system: this.options.htmlEntities ? { ...COMMON_HTML, ...NUMERIC_ENTITIES, ...CURRENCY_ENTITIES } : {},
9393
maxTotalExpansions: this.options.processEntities.maxTotalExpansions,
9494
maxExpandedLength: this.options.processEntities.maxExpandedLength,
9595
applyLimitsTo: "all",

0 commit comments

Comments
 (0)