1. jstransformer-cdata
A transformer that transforms a string into XML CDATA.
jstransformer-cdata
Package: jstransformer-cdata
Created by: jstransformers
Last modified: Sun, 19 Jun 2022 07:00:23 GMT
Version: 1.0.0
License: MIT
Downloads: 2,875
Repository: https://github.com/jstransformers/jstransformer-cdata

Install

npm install jstransformer-cdata
yarn add jstransformer-cdata

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin