Automatically converts `rel=’noopener’` to `rel=”noopener”`

[ad_1]

Inside a JS snippet I want the following:

document.getElementsByClassName("some-class")[0].innerHTML = "<p>Some text <a href='/page/' target='_blank' rel='noopener'>Link</a>.</p>";

The problem is that when I click Update, it automatically converts rel='noopener' to rel="noopener", which doesn’t work because it is already inside “…”. I’ve even tried to completely remove rel='noopener' but then when I hit the Update button it automatically puts it back.

How can I make this work?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer