├── .commitlintrc.json ├── .github ├── CODEOWNERS ├── CONTRIBUTING.md ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature_request.md │ └── question.md ├── PULL_REQUEST_TEMPLATE.md ├── SECURITY.md ├── dependabot.yml ├── mergify.yml └── workflows │ ├── assign-reviewer.yml │ ├── build.yml │ ├── commitlint.yml │ ├── release-please.yml │ ├── scorecard.yml │ └── size-limit.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .lintstagedrc.json ├── .nvmrc ├── .prettierrc.json ├── .size-limit.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── __tests__ ├── __snapshots__ │ ├── dom-to-react.test.tsx.snap │ └── index.test.tsx.snap ├── attributes-to-props.test.ts ├── data │ ├── html.ts │ ├── index.ts │ └── svg.ts ├── dom-to-react.test.tsx ├── esm │ ├── attributes-to-props.test.mjs │ ├── dom-to-react.test.mjs │ ├── index.test.mjs │ └── utilities.test.mjs ├── helpers │ └── index.ts ├── index.test.tsx ├── integration │ └── index.test.ts └── utilities.test.ts ├── benchmark └── index.ts ├── eslint.config.mjs ├── esm ├── attributes-to-props.d.mts ├── attributes-to-props.mjs ├── dom-to-react.d.mts ├── dom-to-react.mjs ├── index.d.mts ├── index.mjs ├── utilities.d.mts └── utilities.mjs ├── examples ├── create-react-app-typescript │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ ├── src │ │ ├── App.css │ │ ├── App.tsx │ │ ├── index.tsx │ │ └── react-app-env.d.ts │ └── tsconfig.json ├── create-react-app │ ├── .env │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ └── src │ │ ├── App.css │ │ ├── App.js │ │ └── index.js ├── nextjs │ ├── .gitignore │ ├── .npmrc │ ├── next-env.d.ts │ ├── package.json │ ├── pages │ │ └── index.tsx │ └── tsconfig.json ├── requirejs │ └── index.html ├── script │ ├── index.html │ └── repl.html └── webpack │ ├── index.html │ ├── package.json │ └── src │ └── index.js ├── jest.config.ts ├── package.json ├── rollup.config.mjs ├── src ├── attributes-to-props.ts ├── dom-to-react.ts ├── index.ts ├── types.ts └── utilities.ts ├── tsconfig.build.json ├── tsconfig.json └── umd └── index.ts /.commitlintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.commitlintrc.json -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/ISSUE_TEMPLATE/question.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/SECURITY.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/mergify.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/mergify.yml -------------------------------------------------------------------------------- /.github/workflows/assign-reviewer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/workflows/assign-reviewer.yml -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/commitlint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/workflows/commitlint.yml -------------------------------------------------------------------------------- /.github/workflows/release-please.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/workflows/release-please.yml -------------------------------------------------------------------------------- /.github/workflows/scorecard.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/workflows/scorecard.yml -------------------------------------------------------------------------------- /.github/workflows/size-limit.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.github/workflows/size-limit.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | npx commitlint --edit $1 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.lintstagedrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.lintstagedrc.json -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 24 2 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true 3 | } 4 | -------------------------------------------------------------------------------- /.size-limit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/.size-limit.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/__snapshots__/dom-to-react.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/__snapshots__/dom-to-react.test.tsx.snap -------------------------------------------------------------------------------- /__tests__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/__snapshots__/index.test.tsx.snap -------------------------------------------------------------------------------- /__tests__/attributes-to-props.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/attributes-to-props.test.ts -------------------------------------------------------------------------------- /__tests__/data/html.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/data/html.ts -------------------------------------------------------------------------------- /__tests__/data/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/data/index.ts -------------------------------------------------------------------------------- /__tests__/data/svg.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/data/svg.ts -------------------------------------------------------------------------------- /__tests__/dom-to-react.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/dom-to-react.test.tsx -------------------------------------------------------------------------------- /__tests__/esm/attributes-to-props.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/esm/attributes-to-props.test.mjs -------------------------------------------------------------------------------- /__tests__/esm/dom-to-react.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/esm/dom-to-react.test.mjs -------------------------------------------------------------------------------- /__tests__/esm/index.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/esm/index.test.mjs -------------------------------------------------------------------------------- /__tests__/esm/utilities.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/esm/utilities.test.mjs -------------------------------------------------------------------------------- /__tests__/helpers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/helpers/index.ts -------------------------------------------------------------------------------- /__tests__/index.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/index.test.tsx -------------------------------------------------------------------------------- /__tests__/integration/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/integration/index.test.ts -------------------------------------------------------------------------------- /__tests__/utilities.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/__tests__/utilities.test.ts -------------------------------------------------------------------------------- /benchmark/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/benchmark/index.ts -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /esm/attributes-to-props.d.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/esm/attributes-to-props.d.mts -------------------------------------------------------------------------------- /esm/attributes-to-props.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/esm/attributes-to-props.mjs -------------------------------------------------------------------------------- /esm/dom-to-react.d.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/esm/dom-to-react.d.mts -------------------------------------------------------------------------------- /esm/dom-to-react.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/esm/dom-to-react.mjs -------------------------------------------------------------------------------- /esm/index.d.mts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/esm/index.d.mts -------------------------------------------------------------------------------- /esm/index.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/esm/index.mjs -------------------------------------------------------------------------------- /esm/utilities.d.mts: -------------------------------------------------------------------------------- 1 | export * from '../lib/utilities'; 2 | -------------------------------------------------------------------------------- /esm/utilities.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/esm/utilities.mjs -------------------------------------------------------------------------------- /examples/create-react-app-typescript/.env: -------------------------------------------------------------------------------- 1 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /examples/create-react-app-typescript/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app-typescript/.gitignore -------------------------------------------------------------------------------- /examples/create-react-app-typescript/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app-typescript/README.md -------------------------------------------------------------------------------- /examples/create-react-app-typescript/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app-typescript/package.json -------------------------------------------------------------------------------- /examples/create-react-app-typescript/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app-typescript/public/index.html -------------------------------------------------------------------------------- /examples/create-react-app-typescript/src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | padding: 50px; 3 | } 4 | -------------------------------------------------------------------------------- /examples/create-react-app-typescript/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app-typescript/src/App.tsx -------------------------------------------------------------------------------- /examples/create-react-app-typescript/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app-typescript/src/index.tsx -------------------------------------------------------------------------------- /examples/create-react-app-typescript/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/create-react-app-typescript/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app-typescript/tsconfig.json -------------------------------------------------------------------------------- /examples/create-react-app/.env: -------------------------------------------------------------------------------- 1 | SKIP_PREFLIGHT_CHECK=true 2 | -------------------------------------------------------------------------------- /examples/create-react-app/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app/README.md -------------------------------------------------------------------------------- /examples/create-react-app/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app/package.json -------------------------------------------------------------------------------- /examples/create-react-app/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app/public/index.html -------------------------------------------------------------------------------- /examples/create-react-app/src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | padding: 50px; 3 | } 4 | -------------------------------------------------------------------------------- /examples/create-react-app/src/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app/src/App.js -------------------------------------------------------------------------------- /examples/create-react-app/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/create-react-app/src/index.js -------------------------------------------------------------------------------- /examples/nextjs/.gitignore: -------------------------------------------------------------------------------- 1 | .next 2 | -------------------------------------------------------------------------------- /examples/nextjs/.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /examples/nextjs/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/nextjs/next-env.d.ts -------------------------------------------------------------------------------- /examples/nextjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/nextjs/package.json -------------------------------------------------------------------------------- /examples/nextjs/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/nextjs/pages/index.tsx -------------------------------------------------------------------------------- /examples/nextjs/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/nextjs/tsconfig.json -------------------------------------------------------------------------------- /examples/requirejs/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/requirejs/index.html -------------------------------------------------------------------------------- /examples/script/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/script/index.html -------------------------------------------------------------------------------- /examples/script/repl.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/script/repl.html -------------------------------------------------------------------------------- /examples/webpack/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/webpack/index.html -------------------------------------------------------------------------------- /examples/webpack/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/webpack/package.json -------------------------------------------------------------------------------- /examples/webpack/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/examples/webpack/src/index.js -------------------------------------------------------------------------------- /jest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/jest.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/rollup.config.mjs -------------------------------------------------------------------------------- /src/attributes-to-props.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/src/attributes-to-props.ts -------------------------------------------------------------------------------- /src/dom-to-react.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/src/dom-to-react.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utilities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/src/utilities.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/tsconfig.json -------------------------------------------------------------------------------- /umd/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarkablemark/html-react-parser/HEAD/umd/index.ts --------------------------------------------------------------------------------