jstransformer-cdata

    1.0.0 • Public • Published

    jstransformer-foo

    JSTransformer that converts a string to an XML CDATA.

    Build Status Coverage Status Dependency Status NPM version

    Installation

    npm install jstransformer-cdata
    

    API

    var cdata = require('jstransformer')(require('jstransformer-cdata'))
     
    cdata.render('hello world').body
    //=> '<![CDATA[hello world]]>'
     
    // ']]>' is properly escaped:
    cdata.render('<[[goodbye world]]>').body
    //=> '<![CDATA[<[[goodbye world]]]]><![CDATA[>]]>'

    License

    MIT

    Install

    npm i jstransformer-cdata

    DownloadsWeekly Downloads

    74

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • calebeby
    • forbeslindesay
    • hemanth
    • robloach
    • stoeffel
    • timothygu