fb-instant-articles icon indicating copy to clipboard operation
fb-instant-articles copied to clipboard

Subtitle doesn't support HTML

Open krispy1298 opened this issue 5 years ago • 0 comments

Steps required to reproduce the problem

  1. Add the following filter to instant_articles_subtitle:
function instant_articles_subtitle($subtitle, $instant_article_post) {
    return '<i>Example</i> Subititle with Italics';
}
  1. Find a post and hit update.
  2. Check Debug Result

Expected Result

<h2><i>Example</i> Subititle with Italics</h2>

Actual Result

<h2>&lt;i&gt;Example&lt;/i&gt; Subititle with Italics</h2>

Version Info

Please state exact versions, not latest or new.

  • Plugin version: 4.2
  • WordPress version: 5.3.2
  • PHP version: 7.2

Without the above information we are not able to debug the issue and will close it.

krispy1298 avatar Apr 20 '20 17:04 krispy1298