Join the Webstudio community

Updated 2 months ago

Removing HTML from Wordpress GraphQL Response

At a glance

The community member is trying to use the post.excerpt node to provide an excerpt for social media and search engine queries, but the data is being stored in paragraph elements. They are asking if there is a way to clean up the output using the expression editor, or if they need to look for a WordPress plugin or create their own solution. The comments indicate that expressions cannot manipulate data, they can only select the provided data.

Hey All,

I am trying to use the post.excerpt node on my description so I can provide an excerpt on social media and search engine queries. However, something I ran into is that WP is storing that data in paragraph elements. Is there a way from within Webstudio's expression editor I can clean up the output? Or, do I have to go look for a wordpress plugin, or create my own, to clean up the data from WP's side?

I followed the recommended setup from the tutorial.
Attachment
image.png
Marked as solution
hi, expressions don't have ability to manipulate data, they only select the data you provided
View full solution
O
1 comment
hi, expressions don't have ability to manipulate data, they only select the data you provided
Add a reply
Sign up and join the conversation on Discord