mirror of
https://github.com/iconify/iconify.git
synced 2025-01-08 15:54:09 +00:00
Utils: fix comments in encodeSVGforURL
This commit is contained in:
parent
e2d56ce62b
commit
8c8aa34d53
@ -3,10 +3,6 @@
|
|||||||
*
|
*
|
||||||
* Short alternative to encodeURIComponent() that encodes only stuff used in SVG, generating
|
* Short alternative to encodeURIComponent() that encodes only stuff used in SVG, generating
|
||||||
* smaller code.
|
* smaller code.
|
||||||
*
|
|
||||||
* If icon is not optimised, run trimSVG() before this function to get rid of new lines.
|
|
||||||
* This function is intended to be used with Iconify icon sets, which are already optimised
|
|
||||||
* and do not contain new lines.
|
|
||||||
*/
|
*/
|
||||||
export function encodeSVGforURL(svg: string): string {
|
export function encodeSVGforURL(svg: string): string {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user