0

For example, I have the following markup:

<div>
  <div class="article">
    <h2></h2>
    <a href="">
      <figure>
        <img src="" /></figure>
      <h3>Text</h3>
    </a>
  </div>
</div>

Tell me, please, how with the native javascript, replace img tags with amp-img tags?

In fact, my markup is much larger and has different classes. And i want to replace tags absolutely everywhere.

Faisal Rahman Avash
  • 1,268
  • 9
  • 13
A.Burdonskaya
  • 511
  • 1
  • 4
  • 27

0 Answers0