Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
716cf56cb2.url-de-test.ws
/
htdocs
/
node_modules
/
svgo
/
plugins
/
/srv/data/web/vhosts/716cf56cb2.url-de-test.ws/htdocs/node_modules/svgo/plugins/removeTitle.js
'use strict'; const { detachNodeFromParent } = require('../lib/xast.js'); exports.name = 'removeTitle'; exports.description = 'removes <title>'; /** * Remove <title>. * * https://developer.mozilla.org/docs/Web/SVG/Element/title * * @author Igor Kalashnikov * * @type {import('./plugins-types').Plugin<'removeTitle'>} */ exports.fn = () => { return { element: { enter: (node, parentNode) => { if (node.name === 'title') { detachNodeFromParent(node, parentNode); } }, }, }; };