Skip to content

Commit 849fea5

Browse files
mdoXhmikosR
authored andcommitted
Add a comment for escape-svg function
Closes #30835 by leaving a comment in the source that the escape-svg() function must have quotes around data URIs.
1 parent 5f5f1cb commit 849fea5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scss/_functions.scss

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
}
7575

7676
// See https://codepen.io/kevinweber/pen/dXWoRw
77+
//
78+
// Requires the use of quotes around data URIs.
79+
7780
@function escape-svg($string) {
7881
@if str-index($string, "data:image/svg+xml") {
7982
@each $char, $encoded in $escaped-characters {

0 commit comments

Comments
 (0)