html-react-parser:HTML到React解析器

上传者: 42105169 | 上传时间: 2023-10-23 16:06:35 | 文件大小: 53KB | 文件类型: ZIP
html-react-parser 在服务器(Node.js)和客户端(浏览器)上均可使用HTML to React解析器: HTMLReactParser(string[, options]) 解析器将HTML字符串转换为一个或多个。 要将元素替换为另一个元素,请签出选项。 例 const parse = require ( 'html-react-parser' ) ; parse ( '

Hello, World!

' ) ; // React.createElement('p', {}, 'Hello, World!') | | | | 目录 安装 : $

文件下载

资源详情

[{"title":"( 63 个子文件 53KB ) html-react-parser:HTML到React解析器","children":[{"title":"html-react-parser-master","children":[{"title":"benchmark","children":[{"title":"index.js <span style='color:#111;'> 530B </span>","children":null,"spread":false}],"spread":true},{"title":"rollup.config.js <span style='color:#111;'> 692B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":".lintstagedrc.json <span style='color:#111;'> 79B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":".size-limit.json <span style='color:#111;'> 77B </span>","children":null,"spread":false},{"title":".eslintrc.json <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"dependabot.yml <span style='color:#111;'> 573B </span>","children":null,"spread":false},{"title":"FUNDING.yml <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":"PULL_REQUEST_TEMPLATE.md <span style='color:#111;'> 634B </span>","children":null,"spread":false},{"title":"ISSUE_TEMPLATE.md <span style='color:#111;'> 705B </span>","children":null,"spread":false},{"title":"workflows","children":[{"title":"build.yml <span style='color:#111;'> 731B </span>","children":null,"spread":false},{"title":"size-limit.yml <span style='color:#111;'> 288B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"attributes-to-props.test.js <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"utilities.test.js <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"index.js <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"svg.js <span style='color:#111;'> 509B </span>","children":null,"spread":false},{"title":"html.js <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"index.test.js <span style='color:#111;'> 4.46KB </span>","children":null,"spread":false},{"title":"__snapshots__","children":[{"title":"index.test.js.snap <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"dom-to-react.test.js.snap <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"attributes-to-props.test.js.snap <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"utilities.test.js.snap <span style='color:#111;'> 417B </span>","children":null,"spread":false}],"spread":false},{"title":"types","children":[{"title":"index.tsx <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"dom-to-react.tsx <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"integration","children":[{"title":"index.test.js <span style='color:#111;'> 664B </span>","children":null,"spread":false}],"spread":false},{"title":"dom-to-react.test.js <span style='color:#111;'> 5.24KB </span>","children":null,"spread":false},{"title":"helpers","children":[{"title":"index.js <span style='color:#111;'> 310B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"SECURITY.md <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"CONTRIBUTING.md <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"index.mjs <span style='color:#111;'> 244B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 549B </span>","children":null,"spread":false},{"title":"index.d.ts <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"create-react-app","children":[{"title":"package.json <span style='color:#111;'> 519B </span>","children":null,"spread":false},{"title":".env <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"App.css <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 146B </span>","children":null,"spread":false},{"title":"App.js <span style='color:#111;'> 396B </span>","children":null,"spread":false}],"spread":false},{"title":"public","children":[{"title":"index.html <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"README.md <span style='color:#111;'> 931B </span>","children":null,"spread":false}],"spread":false},{"title":"index.html <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"amd.html <span style='color:#111;'> 773B </span>","children":null,"spread":false},{"title":"script.html <span style='color:#111;'> 740B </span>","children":null,"spread":false},{"title":"next","children":[{"title":"package.json <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"pages","children":[{"title":"index.js <span style='color:#111;'> 516B </span>","children":null,"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 6B </span>","children":null,"spread":false}],"spread":false},{"title":"webpack","children":[{"title":"package.json <span style='color:#111;'> 341B </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 123B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.js <span style='color:#111;'> 210B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 23.94KB </span>","children":null,"spread":false},{"title":".commitlintrc.json <span style='color:#111;'> 102B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"dom-to-react.d.ts <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":"attributes-to-props.d.ts <span style='color:#111;'> 333B </span>","children":null,"spread":false},{"title":"dom-to-react.js <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"utilities.js <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"attributes-to-props.js <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false}],"spread":false},{"title":"CODE_OF_CONDUCT.md <span style='color:#111;'> 3.29KB </span>","children":null,"spread":false},{"title":".npmrc <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 16.38KB </span>","children":null,"spread":false},{"title":".huskyrc.json <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":".prettierrc.json <span style='color:#111;'> 79B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明