Skip to content

Commit

Permalink
Add a comment for escape-svg function
Browse files Browse the repository at this point in the history
 Closes #30835 by leaving a comment in the source that the escape-svg() function must have quotes around data URIs.
  • Loading branch information
mdo committed Sep 14, 2020
1 parent 5f5f1cb commit c131d6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scss/_functions.scss
Expand Up @@ -74,6 +74,9 @@
}

// See https://codepen.io/kevinweber/pen/dXWoRw
//
// Requires the use of quotes around data URIs.

@function escape-svg($string) {
@if str-index($string, "data:image/svg+xml") {
@each $char, $encoded in $escaped-characters {
Expand Down

0 comments on commit c131d6d

Please sign in to comment.