javascript – Remove an HTML tag from Div.

I use WYSIWYG editor in my website. It has the option to change the font size and font color of the chapter.

However, I want to make sure that the user can override the font settings while reading it if they wish.

I know I can only get the internal HTML and change the font size and color properties from it. However, it is possible that the font size and color are actually part of the text instead of the HTML tag.

So how can I remove these attributes from HTML without affecting the main text?

Write a Comment