Remove HTML from image captions
-
Is it possible to automatically strip HTML from image captions? Or to ensure that links within captions are functioning correctly?
Currently we have some captions that contain HTML (usually just < a href > for links), which when they are being output to Facebook Instant Articles, the raw HTML code is showing up. I would prefer to either remove the HTML entirely, or even better have the links function correctly.
Strangely enough it seems to be only the main image at the top of the article (the featured/thumbnail image) where this issue is occurring. The inline images (within the body text) have links which are working correctly.
Screenshot of this happening: https://mixdev.nz/clients/misc/IMG_4616.PNG
- The topic ‘Remove HTML from image captions’ is closed to new replies.