0.1.2 • Published 1 year ago

i-html-parser v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Installation

npm install i-html-parser

Usage

// ESModule
import HTML from 'i-html-parser'
// CommonJS
const HTML = require('i-html-parser')
<!-- Script -->
<script src="../dist/html-parser.min.js"></script>
const htmlStr = `
  <!DOCTYPE html>
  <html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
  </head>

  <body></body>

  </html>
`

const { ast } = HTML.parse(htmlStr)
const str = HTML.stringify(ast)
0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.0.0

1 year ago