html-react-parser 6.1.5 → 6.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -65,7 +65,13 @@
|
|
|
65
65
|
function requireConstants () {
|
|
66
66
|
if (hasRequiredConstants) return constants;
|
|
67
67
|
hasRequiredConstants = 1;
|
|
68
|
-
|
|
68
|
+
//#region src/client/constants.ts
|
|
69
|
+
/**
|
|
70
|
+
* SVG elements are case-sensitive.
|
|
71
|
+
*
|
|
72
|
+
* @see https://developer.mozilla.org/docs/Web/SVG/Element#svg_elements_a_to_z
|
|
73
|
+
*/
|
|
74
|
+
const CASE_SENSITIVE_TAG_NAMES = [
|
|
69
75
|
"animateMotion",
|
|
70
76
|
"animateTransform",
|
|
71
77
|
"clipPath",
|
|
@@ -97,11 +103,13 @@
|
|
|
97
103
|
"linearGradient",
|
|
98
104
|
"radialGradient",
|
|
99
105
|
"textPath"
|
|
100
|
-
]
|
|
106
|
+
];
|
|
107
|
+
const CASE_SENSITIVE_TAG_NAMES_MAP = CASE_SENSITIVE_TAG_NAMES.reduce((accumulator, tagName) => {
|
|
101
108
|
accumulator[tagName.toLowerCase()] = tagName;
|
|
102
109
|
return accumulator;
|
|
103
110
|
}, {});
|
|
104
111
|
//#endregion
|
|
112
|
+
constants.CASE_SENSITIVE_TAG_NAMES = CASE_SENSITIVE_TAG_NAMES;
|
|
105
113
|
constants.CASE_SENSITIVE_TAG_NAMES_MAP = CASE_SENSITIVE_TAG_NAMES_MAP;
|
|
106
114
|
|
|
107
115
|
|
|
@@ -839,6 +847,7 @@
|
|
|
839
847
|
utilities$1.escapeSpecialCharacters = escapeSpecialCharacters;
|
|
840
848
|
utilities$1.formatDOM = formatDOM;
|
|
841
849
|
utilities$1.hasOpenTag = hasOpenTag;
|
|
850
|
+
utilities$1.revertEscapedCharacters = revertEscapedCharacters;
|
|
842
851
|
|
|
843
852
|
|
|
844
853
|
return utilities$1;
|
|
@@ -971,6 +980,7 @@
|
|
|
971
980
|
}
|
|
972
981
|
//#endregion
|
|
973
982
|
domparser.default = domparser$1;
|
|
983
|
+
domparser.getHTMLForInnerHTML = getHTMLForInnerHTML;
|
|
974
984
|
|
|
975
985
|
|
|
976
986
|
return domparser;
|