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!') | | | | 目录 安装 : $

文件下载

资源详情

( 63 个子文件 53KB ) html-react-parser:HTML到React解析器
html-react-parser-master
benchmark
index.js 530B
rollup.config.js 692B
index.js 1.22KB
.lintstagedrc.json 79B
package.json 2.26KB
.size-limit.json 77B
.eslintrc.json 381B
.github
dependabot.yml 573B
FUNDING.yml 855B
PULL_REQUEST_TEMPLATE.md 634B
ISSUE_TEMPLATE.md 705B
workflows
build.yml 731B
size-limit.yml 288B
test
attributes-to-props.test.js 6.00KB
utilities.test.js 3.05KB
data
index.js 73B
svg.js 509B
html.js 1.06KB
index.test.js 4.46KB
__snapshots__
index.test.js.snap 3.61KB
dom-to-react.test.js.snap 1.55KB
attributes-to-props.test.js.snap 3.14KB
utilities.test.js.snap 417B
types
index.tsx 2.08KB
lib
dom-to-react.tsx 1.33KB
integration
index.test.js 664B
dom-to-react.test.js 5.24KB
helpers
index.js 310B
SECURITY.md 322B
LICENSE 1.08KB
CONTRIBUTING.md 1.98KB
index.mjs 244B
tsconfig.json 549B
index.d.ts 1.36KB
examples
create-react-app
package.json 519B
.env 26B
src
App.css 26B
index.js 146B
App.js 396B
public
index.html 1.22KB
README.md 931B
index.html 1.03KB
amd.html 773B
script.html 740B
next
package.json 233B
pages
index.js 516B
.gitignore 6B
webpack
package.json 341B
index.html 123B
src
index.js 210B
.gitignore 697B
CHANGELOG.md 23.94KB
.commitlintrc.json 102B
lib
dom-to-react.d.ts 418B
attributes-to-props.d.ts 333B
dom-to-react.js 3.51KB
utilities.js 2.54KB
attributes-to-props.js 1.85KB
CODE_OF_CONDUCT.md 3.29KB
.npmrc 35B
README.md 16.38KB
.huskyrc.json 144B
.prettierrc.json 79B
[{"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,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明
服务器状态检查中...