From: Mark Otto Date: Mon, 14 Sep 2020 22:03:52 +0000 (-0700) Subject: Add a comment for escape-svg function X-Git-Tag: v4.5.3~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8acd7c9fbe3197b2446a534682e622ac141017ba;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. (cherry picked from commit 849fea5a1ec6a2c39451fefb21a70c6dc9ceac42) --- diff --git a/scss/_functions.scss b/scss/_functions.scss index eb2471d753..9c06603150 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 {