How do I output ACF custom fields within the_content() AND strip tags?
I’m trying to output a text-only version of the_content, that includes all custom blocks.
echo wp_strip_all_tags( get_the_content() ); strips tags and outputs text only, but only for native content. No custom fields setup with ACF.
I’m using ACF to display custom blocks within Gutenberg. These blocks have repeaters inside them (if it matters.)
I take it I need to apply filters to the_content, somehow?
Ideally, I would like to output all native content including everything in any custom block present in the content, but without any HTML tags. I need this for the Schema articleBody.
Is this possible?