Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 158131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:37:38+00:00 2026-05-11T10:37:38+00:00

I have RSS feed that I want to modify on fly, all I need

  • 0

I have RSS feed that I want to modify on fly, all I need is the text (and linefeeds) so everything else must be removed ( All images, styles, links )

How can I do this easily with ASP.NET c#

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:37:39+00:00Added an answer on May 11, 2026 at 10:37 am

    Regex cannot parse XML. Do not use regex to parse XML. Do not pass Go. Do not collect £200.

    You need a proper XML parser. Load the RSS into an XMLDocument, then use innerText to get only text content.

    Note that even when you’ve extracted the description content from RSS, it can contain active HTML. That is:

    <description> &lt;em&gt;Fish&lt;/em&gt; &amp;amp; chips </description> 

    can, when parsed properly as XML then read as text give you either the literal string:

    <em>Fish</em> &amp; chips 

    or, the markup:

    Fish & chips

    The fun thing about RSS is that you don’t really know which is right. In RSS 2.0 it is explicitly HTML markup (the second case); in other versions it’s not specified. Generally you should assume that descriptions can contain entity-encoded HTML tags, and if you want to further strip those from the final text you’ll need a second parsing step.

    (Unfortunately, since this is legacy HTML and not XML it’s harder to parse; a regex will be even more useless than it is for parsing XML. There isn’t a built-in HTML parser in .NET, but there are third-party libraries such as the HTML Agility Pack.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit: Translated I have a RSS-feed that i want to parse. It's a podcast
I have an rss feed that spits out plain html so I want to
I have a dynamically generated rss feed that is about 150M in size (don't
I have a WCF service that uses a System.ServiceModel.Syndication.SyndicationFeed to create an RSS feed.
I have a RSS feed i need to display in a table (its clothes
I have an RSS feed and I want to integrate each item into it
I have a ready RSS atom feed on my ASP.net site,but I want to
I have an application that reads an rss feed, parses the xml and adds
I want to read an RSS feed on my app, i have been based
I have a view setup in the Views module that outputs an RSS feed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.