Skip to content

Commit 8acd7c9

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. (cherry picked from commit 849fea5)
1 parent b0a0c56 commit 8acd7c9

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
@@ -51,6 +51,9 @@
5151
}
5252

5353
// See https://codepen.io/kevinweber/pen/dXWoRw
54+
//
55+
// Requires the use of quotes around data URIs.
56+
5457
@function escape-svg($string) {
5558
@if str-index($string, "data:image/svg+xml") {
5659
@each $char, $encoded in $escaped-characters {

0 commit comments

Comments
 (0)