In JavaScript, I am using the below regex to replace the attributes of the elements with empty value. But it is not working.
msg="<p> This news is all about <a title='article' href='https://jhd-dev786.adbcmsq.net/2021/11/blog-11.html' target='_blank'>main</a> content of the <strong> section </strong> </p>n"
msg = msg.replace(/s?w+='[^']+'s?/, "");