S
S
siteohio2020-04-30 18:43:18
SVG
siteohio, 2020-04-30 18:43:18

How to remove id from svg?

I would like to know how to remove the id and url in the mask in the SVG tag. There is no desire to rewrite a new id every time.

<svg width="15" height="15" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
  <mask id="mask15" width="12" height="12">
    <path d="M6.40438 2.71801L5.99997 3.12974L5.59556 2.71801C4.61897 1.72376 3.0589 1.60396 2.0711 2.43624C0.853665 3.46102 0.855868 5.24725 1.88573 6.29824L5.60707 10.0896C5.71347 10.1981 5.85224 10.2569 5.99997 10.2569C6.15078 10.2569 6.28714 10.1996 6.39311 10.0915L10.1135 6.30108C11.1436 5.24788 11.147 3.46199 9.92893 2.43632C8.9404 1.60527 7.38016 1.72459 6.40438 2.71801Z" fill="none" stroke="#fff" />
   </mask>
   <g mask="url(#mask15)">
     <rect width="12" height="12" fill="white" />
   </g>
</svg>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arseny, 2020-04-30
@siteohio

1. No, it's SVG, not HTML.
2. Collect everything in one defs and reuse if possible, but then there will simply be a little less ID's.

O
Oleg, 2020-04-30
@politon

Option

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question