From c131d6d0d583e701548e17ca27fb5e4d6de99745 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 14 Sep 2020 15:03:52 -0700 Subject: [PATCH] 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. --- scss/_functions.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scss/_functions.scss b/scss/_functions.scss index 980efb025879..83eea1fbe30a 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -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 {