question

Upvotes
Accepted
1 0 0 0

How to customise News Story response text(HTML) of TRKD API?

I got a news story using storyid of a news headline. I got the full story from "TE" and I am displaying that story on my WordPress website. But there are multiple HTML tag inside response like <pre>,<origin>,\n. When I rendered the story on a web page, it is not showing properly. The link and images are also not working so I am just wondering is there any easy way to customise this content on a web page.

rkd-apirkdnewsresponse
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
11.5k 16 7 10

Hello @dhruvpatel25811

The HTML tag inside full story text is part of the news content that published from the data source. The RKD API just provides a full story text "as is" for consumer application. The consumer application needs to manual handle (parse, remove, etc) those HTML tag in the application level.

For more information, please refer to RKD API Retrieve Story API document page.



tags.png (35.7 KiB)
characters.png (21.0 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea