Skip to main content
Version: 1.2.x

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()

Since v1.0.0

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()

Since v1.0.0

It use the mainly the replace function to escape characters in a SVG base64.