Html tags showing with api content

I’m just starting to get my feet wet with meteor and working with api’s. I’m trying to bring some content in from a wordpress post via the wp rest api and I can do that but the display is showing the html tags (the p tags specifically). Can anyone point me in the direction of how I go about processing the information the right way?

Any help us appreciated. Thanks

Post the code your working with.

edit: This may help you: https://css-tricks.com/snippets/javascript/strip-html-tags-in-javascript/

Thanks for the response!

1 Like

:stuck_out_tongue_closed_eyes: Did that work?

I haven’t had time to sit down and work it out yet. I’ll left you know how I do.

Thanks again for the advice.

orbyt- thanks for your help! You set me on track to find this meteor tagstripper package https://github.com/copleykj/meteor-tagstripper

this allowed me to strip tags and “allow” the tags I wanted. This allowed me to keep the html tags that were already in the wordpress content.