{"id":18830082,"date":"2026-02-22T20:00:19","date_gmt":"2026-02-22T20:00:19","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/copy-shortcode-is-broken\/"},"modified":"2026-02-22T20:00:19","modified_gmt":"2026-02-22T20:00:19","slug":"copy-shortcode-is-broken","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/copy-shortcode-is-broken\/","title":{"rendered":"[copy] shortcode is broken"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In the previous versions, the [copy] shortcode was working correctly, when it encloses a formatted text, like below where the character \u00a9 is bolded:<br \/><br \/><code>[copy]<strong>\u00a9<\/strong>[\/copy]<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the user-facing front-end, what is seen is <strong>\u00a9<\/strong> and when you click on it, the the plain unformatted character \u00a9 is copied. Which is the correct behavior.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, this broke with the latest version. when the [copy] shortcode encloses a formatted text, like below where the character \u00a9 is bolded:<br \/><br \/><code>[copy]<strong>\u00a9<\/strong>[\/copy]<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the user-facing front-end, what is seen is:<br \/><strong><code><strong><strong><code>&lt;strong&gt;\u00a9&lt;\/strong&gt;<\/code><\/strong><\/strong><\/code><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And what is copied is also:<br \/><strong><strong><code>&lt;strong&gt;\u00a9&lt;\/strong&gt;<\/code><\/strong><\/strong><\/p>\n","protected":false},"template":"","class_list":["post-18830082","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18830082","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18830082\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18830082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}