0.1.2 • Published 2 years ago

i-html-parser v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.0

2 years ago