File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ var domParserOptions = { decodeEntities: true, lowerCaseAttributeNames: false };
7
7
/**
8
8
* Converts HTML string to React elements.
9
9
*
10
- * @param {String } html - The HTML string to parse to React.
11
- * @param {Object } [options] - The parser options.
12
- * @param {Function } [options.replace] - The replace method.
13
- * @return {JSX.Element|JSX.Element[]|String } - Returns React element(s), string, or empty array.
10
+ * @param {String } html - HTML string.
11
+ * @param {Object } [options] - Parser options.
12
+ * @param {Object } [options.library] - Library for React, Preact, etc.
13
+ * @param {Function } [options.replace] - Replace method.
14
+ * @return {JSX.Element|JSX.Element[]|String } - React element(s), empty array, or string.
14
15
*/
15
16
function HTMLReactParser ( html , options ) {
16
17
if ( typeof html !== 'string' ) {
You can’t perform that action at this time.
0 commit comments