Nonstop Progressive Marxism

    htmltostring

    1.0.6 • Public • Published

    htmlToString explaination meme

    htmlToString

    Convert html/DOM element to string

    Works with rendered and virtual DOM

    Installation

    npm install htmltostring

    Or using CDN

    <script src="https://cdn.jsdelivr.net/npm/htmltostring@1.0.6/htmlToString.min.js"></script>

    Usage

    import htmlToString from 'htmltostring'
    
    console.log(htmlToString('.container'))
    // or 
    // const container = document.querySelector('.container')
    // console.log(htmlToString(container))

    Example Output

    <div class="container">
        <h1>Hello World</h1>
    </div>
    

    Install

    npm i htmltostring

    DownloadsWeekly Downloads

    1

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    296 kB

    Total Files

    8

    Last publish

    Collaborators

    • 0shuvo0