1.0.4 • Published 5 years ago

html2wx-rich-text v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

场景

html标签富文本解析为小程序rich-text(不支持图片,css,js)

Usage:

const html2wxml = require('html2wx-rich-text')  // node
import html2wxml from 'html2wx-rich-text' // browser

const str = '<p>标题</p><div style="color:red;font-size: 16px">内容</div>'
const nodes = html2wxml(str) // 小程序富文本对象

// 小程序
<rich-text nodes="{{nodes}}"></rich-text>
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago