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

Function stringifyText

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

Source from the content-addressed store, hash-verified

289 * @returns {string}
290 */
291const stringifyText = (node, config, state) => {
292 return (
293 createIndent(config, state) +
294 config.textStart +
295 node.value.replace(config.regEntities, config.encodeEntity) +
296 (state.textContext ? '' : config.textEnd)
297 );
298};

Callers 1

stringifyNodeFunction · 0.85

Calls 1

createIndentFunction · 0.85

Tested by

no test coverage detected