htmltowxml
convert html to wxml
Last updated 2 years ago by jayzou .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install htmltowxml 
SYNC missed versions from official npm registry.

#html2wxml enter image description here

convert html to wxml
html转换成wxml适配微信小程序 ##install npm install htmltowxml --save

##Usage

import {html2wxml} from 'htmltowxml';
const wxml = html2wxml('<div>I am<div>I am<div>I am test</div> test</div> test</div>');
console.log(wxml);
/*<view class="div">
  <text>I am</text>
  <view class="div">
    <text>I am</text>
    <view class="div">
      <text>I am test</text>
    </view>
    <text>test</text>
  </view>
  <text>test</text>
</view>
*/

##test npm i

npm test

##License MIT

Current Tags

  • 1.0.4                                ...           latest (2 years ago)

5 Versions

  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 0
Last Month 6
Dependencies (5)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |