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.

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    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.

    image

    image