prof18 / RSS-Parser

A Kotlin Multiplatform library to parse a RSS Feed
Apache License 2.0
489 stars 126 forks source link

Images and structure of content field are not preserved #197

Closed mayank12gt closed 1 week ago

mayank12gt commented 1 month ago

Describe the bug In some RSS feeds, the "" field has HTML with defined structure(for ex with p tags for paragraphs) and images, but the content attribute of the RSSItem removes the images and structure, and returns all text as single paragraph. Is there any way to keep the original structure and images or extract the raw html from so it can be parsed accordingly,

The link of the RSS Feed https://inc42.com/features/feed

The "" field in this feed has images and paragraphs but on parsing only text is returned in a single paragraph

I just found out, the library is working correctly, i was using an html parser which was the cause of the problem. My apologies

prof18 commented 1 week ago

@mayank12gt I'm closing the issue based on the last line.