Facebook's Instant Articles rejects articles that contain hyperlinks to the current page (e.g.
<a href="#_ftn1"></a>). How can I filter the post content to remove these links before publishing to Facebook Instant Articles?
I'm aware of a similar question on StackOverflow: How to remove hyperlink of images in wordpress post?, but my RegEx skills aren't good enough to convert that to what I need.
PS - I'm using the semi-official Instant Articles for WP, which means I can filter
PPS - It would be nice to know both how to remove the link but leave the link text, and how to remove both the link and the link text.