function encodeSvgForCss(svg) { let useSvg = svg.startsWith("") ? svg.replace("", "") : svg; if (!useSvg.includes(" xmlns:xlink=") && useSvg.includes(" xlink:")) { useSvg = useSvg.replace("/g, "%3E"); } export { encodeSvgForCss };