JSFiddle - React, Tailwind, and code Playground
by mylastof
JavaScript
var string = '<p style="color:green;font-weight:bold">Air mineral</p>'
const regex = /\sstyle=\"([^"]*)"/
document.write(string.replace(regex, ''))
by mylastof
var string = '<p style="color:green;font-weight:bold">Air mineral</p>'
const regex = /\sstyle=\"([^"]*)"/
document.write(string.replace(regex, ''))