• Resolved nicmare

    (@nicmare)


    Hi tried to use a svg file with this content:

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
    <svg xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" version="1.0" id="Layer_1" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" xml:space="preserve">
    <g>
    	<path fill="#231F20" d="M47.122,17.006H7c-0.553,0-1,0.447-1,1v26c0,0.553,0.447,1,1,1h33.872c0.553,0,0.929-0.404,1.128-1   l5.968-25.859C48.165,17.439,47.675,17.006,47.122,17.006z M40.178,43.006H8v-24h37.717L40.178,43.006z"></path>
    	<path fill="#231F20" d="M60,21.006h-2v-6c0-2.211-1.789-4-4-4H4c-2.211,0-4,1.789-4,4v32c0,2.211,1.789,4,4,4h50   c2.211,0,4-1.789,4-4v-6h2c2.211,0,4-1.789,4-4v-12C64,22.795,62.211,21.006,60,21.006z M56,47.006c0,1.104-0.896,2-2,2H4   c-1.104,0-2-0.896-2-2v-32c0-1.104,0.896-2,2-2h50c1.104,0,2,0.896,2,2V47.006z M62,37.006c0,1.104-0.896,2-2,2h-2v-16h2   c1.104,0,2,0.896,2,2V37.006z"></path>
    	<path fill="#231F20" d="M15,32.006h2v2c0,0.553,0.447,1,1,1s1-0.447,1-1v-2h2c0.553,0,1-0.447,1-1s-0.447-1-1-1h-2v-2   c0-0.553-0.447-1-1-1s-1,0.447-1,1v2h-2c-0.553,0-1,0.447-1,1S14.447,32.006,15,32.006z"></path>
    	<path fill="#231F20" d="M31,32.006h6c0.553,0,1-0.447,1-1s-0.447-1-1-1h-6c-0.553,0-1,0.447-1,1S30.447,32.006,31,32.006z"></path>
    </g>
    </svg>

    but the plugin refused the output. i then removed xml and comment tag and it works. like this:

    <svg xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" version="1.0" id="Layer_1" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" xml:space="preserve">
    <g>
    	<path fill="#231F20" d="M47.122,17.006H7c-0.553,0-1,0.447-1,1v26c0,0.553,0.447,1,1,1h33.872c0.553,0,0.929-0.404,1.128-1   l5.968-25.859C48.165,17.439,47.675,17.006,47.122,17.006z M40.178,43.006H8v-24h37.717L40.178,43.006z"></path>
    	<path fill="#231F20" d="M60,21.006h-2v-6c0-2.211-1.789-4-4-4H4c-2.211,0-4,1.789-4,4v32c0,2.211,1.789,4,4,4h50   c2.211,0,4-1.789,4-4v-6h2c2.211,0,4-1.789,4-4v-12C64,22.795,62.211,21.006,60,21.006z M56,47.006c0,1.104-0.896,2-2,2H4   c-1.104,0-2-0.896-2-2v-32c0-1.104,0.896-2,2-2h50c1.104,0,2,0.896,2,2V47.006z M62,37.006c0,1.104-0.896,2-2,2h-2v-16h2   c1.104,0,2,0.896,2,2V37.006z"></path>
    	<path fill="#231F20" d="M15,32.006h2v2c0,0.553,0.447,1,1,1s1-0.447,1-1v-2h2c0.553,0,1-0.447,1-1s-0.447-1-1-1h-2v-2   c0-0.553-0.447-1-1-1s-1,0.447-1,1v2h-2c-0.553,0-1,0.447-1,1S14.447,32.006,15,32.006z"></path>
    	<path fill="#231F20" d="M31,32.006h6c0.553,0,1-0.447,1-1s-0.447-1-1-1h-6c-0.553,0-1,0.447-1,1S30.447,32.006,31,32.006z"></path>
    </g>
    </svg>
Viewing 1 replies (of 1 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi @nicmare,

    Thanks for reporting. This is the correct behavior. The custom icon field only accepts add a single <svg> tag, nothing else.

    Best,
    Nick

Viewing 1 replies (of 1 total)
  • The topic ‘SVG File denied because of xml and comment tag’ is closed to new replies.