Looking to strip out any "background-color:[whatever];" styles from the text within a div. The plan is to eliminate all inline background-color styles completely.
I've been eyeing JavaScript's
string.replace(regex,str)
as a potential solution but struggling with crafting the right regex pattern. I need it to identify "background-color:" and then remove that along with everything up to the next ";".
If anyone can steer me in the correct direction, I'd greatly appreciate it.
Thank you!