img tag not converted to amp-img
-
I have a validation error:
The tag ‘img’ may only appear as a descendant of tag ‘noscript’. Did you mean ‘amp-img’?
is all over the place. I tried to edit the sanitizer and figured out that for some reason the content has <img instead of <img when dumping it. So that could be the reason why it’s not sanitized to amp-img.
This is the example page with several images: https://srbodroid.com/vesti/vest/easeus-bozicna-kampanja-2016/amp/#development=1
I’m not sure how to edit sanitizer. I tried doing it with regex str_replace but without success. Would love to use it. My other website does not have this issue. I’m not sure what is the difference in content.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘img tag not converted to amp-img’ is closed to new replies.