Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to render content of wordpress api?

I am creating a mobile app for a wordpress solution, while studying wordpress rest api, I have found a problem with the way the json schema is rendered;

while /wp-json/wp/v2/posts displays all posts but it is in this format

"title": {
    "rendered": "testing rest api & #8220;tesint-restAP& #8221;"
 }, 

How to extract the actual content from response.data.content because it came as html version with tags and such ???.enter image description here

like image 850
oflcad Avatar asked Dec 07 '25 06:12

oflcad


1 Answers

Tip for .NET Developers

When using http://restsharp.org/ in .NET to call the API, no parsing was required on the content.

like image 118
Bart VdA Avatar answered Dec 08 '25 21:12

Bart VdA



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!