I have a html string from backend API and I want to add class to all the image element in the html string, I was able to do it with jQuery but as jQuery doesn't work in server side rendering so I am looking for solutions in javascript.
here is the html string
let html="<p>here is a blog test<img src="https://bucket.s3.ap-south-1.amazonaws.com/83a5e290-8a8d-11ea-8466.jpg"></p>"
I want to add class to the image element
Any help or suggestions will be greatly appreciated.