This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
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?