https://github.com/zhuping/octoparse2
基于 rich-text 的 html parse 解析,支持 微信/百度/支付宝/头条 小程序
https://github.com/zhuping/octoparse2
Last synced: 3 months ago
JSON representation
基于 rich-text 的 html parse 解析,支持 微信/百度/支付宝/头条 小程序
- Host: GitHub
- URL: https://github.com/zhuping/octoparse2
- Owner: zhuping
- License: mit
- Created: 2019-04-11T08:42:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T08:06:27.000Z (about 6 years ago)
- Last Synced: 2025-02-03T13:07:57.496Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# octoparse2
基于 rich-text 的跨平台富文本解析## 如何使用
```html
// index.wxml```
```js
// index.js
const octoparse = require('octoparse2');let richText = `
Hello World!
`;
let html = octoparse.parse(richText);this.setData({
nodes: html
});```
> Tips: 记得使用 **构建npm**,不然加载不了 *node_modules* 目录下的文件 [参考文档](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html)