From 849fea5a1ec6a2c39451fefb21a70c6dc9ceac42 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 980efb0258..83eea1fbe3 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 {