MCPcopy Create free account
hub / github.com/svg/svgo / stringifyCdata

Function stringifyCdata

lib/stringifier.js:184–191  ·  view source on GitHub ↗
(node, config, state)

Source from the content-addressed store, hash-verified

182 * @returns {string}
183 */
184const stringifyCdata = (node, config, state) => {
185 return (
186 createIndent(config, state) +
187 config.cdataStart +
188 node.value +
189 config.cdataEnd
190 );
191};
192
193/**
194 * @param {import('./types.js').XastElement} node

Callers 1

stringifyNodeFunction · 0.85

Calls 1

createIndentFunction · 0.85

Tested by

no test coverage detected