From 8acd7c9fbe3197b2446a534682e622ac141017ba 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. (cherry picked from commit 849fea5a1ec6a2c39451fefb21a70c6dc9ceac42) --- scss/_functions.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scss/_functions.scss b/scss/_functions.scss index eb2471d75368..9c06603150ed 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -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 {