From: Mark Otto Date: Mon, 14 Sep 2020 22:03:52 +0000 (-0700) Subject: Add a comment for escape-svg function X-Git-Tag: v5.0.0-alpha2~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=849fea5a1ec6a2c39451fefb21a70c6dc9ceac42;p=thirdparty%2Fbootstrap.git 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. --- 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 {