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.
This commit is contained in:
Mark Otto 2020-09-14 15:03:52 -07:00 committed by XhmikosR
parent 5f5f1cbcff
commit 849fea5a1e
1 changed files with 3 additions and 0 deletions

View File

@ -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 {