@deepjs/html-parser

0.2.9 • Public • Published

html-parser

将 HTML String转化为 nodes 数组

独立包,无依赖,语义化,使用简单

使用

import htmlParser from '@deepjs/html-parser';

const htmlStr = '<p style="color: red; text-align: center;">这是<strong>简单</strong>富文本</p>'
const htmlNodes = htmlParser(htmlStr)

来源:

Package Sidebar

Install

npm i @deepjs/html-parser

Weekly Downloads

0

Version

0.2.9

License

MIT

Unpacked Size

11.7 kB

Total Files

3

Last publish

Collaborators

  • cloudyan