An open API service indexing awesome lists of open source software.

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 解析,支持 微信/百度/支付宝/头条 小程序

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)