Paulo on "[Plugin: Instant Articles for WP] Remove HTML from image captions"

ساخت وبلاگ

Hi, maxxnz. Thanks for the screenshot of what you described.

Purposefully, tags in captions are escaped since links aren't allowed on image captions.

As for stripping the tags altogether, I think this would be possible by customizing the Rules for the Transformer.

The plugin makes use of the Facebook Instant Articles SDK for PHP which contains a Transformer that does all the heavy lifting of converting general markup into valid Instant Articles markup — and it, of course, is fully customizable since it uses a set of rules for specifying how to parse the content of the post/page. In the plugin, you can define your own rule set in the Settings page of the plugin under: Plugin Configuration > Publishing Settings > Custom transformer rules.

I think you'd be interested in associating a selector for anchor tags within image captions to a PassThroughRule.

For more information please the Selector Rules section of our Quick Start guide.

I'll leave this item open until I hear back from you with your thoughts or results.

Thanks again!

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 134 تاريخ : جمعه 17 ارديبهشت 1395 ساعت: 18:43