# mini-html-parser **Repository Path**: mirrors_yesmeck/mini-html-parser ## Basic Information - **Project Name**: mini-html-parser - **Description**: html parser for rich-text - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-07-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mini-html-parser2 ## 安装 ``` $ npm install mini-html-parser2 --save ``` ## 使用 ```js // page.js const html = `
test
table test
title title
yy xx xx xx
` import parse from 'mini-html-parser2'; Page({ data: { nodes: [], }, onLoad() { parse(html, (err, nodes) => { if (!err) { this.setData({ nodes, }); } }) }, }) ``` ```html ``` ## 运行测试 ``` $ npm run build $ npm test ```