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.