I have a feed that imports content into custom fields. Some of the imports include html with inline style. Is there a function that can strip style from a custom field? In the instance my custom field slug is "the-role"
You're saying that your source provides the content with HTML in it and you want to strip those out ?
In this case you will need a hook from the feed plugin to strip out the inline html content from the text. Not much we can do here on our side about this one.
I would recommend that you contact the plugin author to see if they have a method to strip out the HTML while the text is being imported.
Is there a way to do something like the above for specific custom fields or create a shortcode that actions the above when the custom field is wrapped in the shortcode?