Iterate through HTML elements add a class name if it contains inline background-color
Advertisements I have a user generated rich text content that needs to be modify with some additional static class names. I tried below JS code. First I get the content and using DOMParser. Then iterate all elements, If any elements contains inline background-color, I need to add some random class name to that specific element… Read More Iterate through HTML elements add a class name if it contains inline background-color