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.

(cherry picked from commit 849fea5)
  • Loading branch information
mdo authored and XhmikosR committed Sep 21, 2020
1 parent b0a0c56 commit 6c11537
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scss/_functions.scss
Expand Up @@ -51,6 +51,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 6c11537

Please sign in to comment.