String
Because the sass:string
module already, the namespace is prefixed with an
underscore to avoid conflict.
@use "@glsass/tools/tools.string" as _str;
replace()
The function search and replace occurence in the string given
_str.replace($string, $search, $replace: "");
content: _str.replace("Hello x!", "x", attr(data-name))
// Returns "Hello world!"
escape-svg()
It use the mainly the replace
function to escape characters in a SVG base64.