custom-api widget: How to extract content from HTML in template? #854
aakashbashyal21
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m working with a custom-api widget and I receive HTML content from an API response.
I want to extract specific parts of the HTML (e.g., text inside a
<div>or a<span>) to display in the widget.Is there a built-in way in custom-api templates to parse HTML and extract elements? what are the recommended approaches to extract content from HTML within a widget?
Are there any supported functions, filters, or workarounds to manipulate HTML in templates?
Thanks in advance for any guidance or examples.
Beta Was this translation helpful? Give feedback.
All reactions