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 133427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:25:50+00:00 2026-05-11T06:25:50+00:00

I want to write an application that consumes RSS. I want to be able

  • 0

I want to write an application that consumes RSS. I want to be able to show some items in the item description of the RSS feed as HTML, such as images, links, br, etc. However, I don’t want any embedded scripts to run, unruly css elements, etc. I don’t want to re-invent the wheel either. Are their any libraries that strip out just the correct level of HTML?

The issue that I am running into is that I’m generating an RSS feed from phpBB, so the posts do have br and a (link) tags already. However, a user can paste a script tag in a post and it will be encoded properly to display as text on the page.

However, when I look at the post in an RSS reader, all html in the post is encoded as < and >…etc. This blurs the distinction between the br tag and the (less than)script(greaterthan) tag as they both appear with & l t ; and & g t ;

I feel like this should be easier, and I’m just missing something obvious…I hope.

  • 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-11T06:25:50+00:00Added an answer on May 11, 2026 at 6:25 am

    I figured it out. I was using a RSS script that was causing the html-encoded angle brackets to be ‘mixed in’ with the real html in the rss feed

    This is waht the source looked like in phpBB:

    <a href='link'>link</a> &lt;script&gt;alert('hack you');&lt;/script&gt; 

    But in my rss feed, it was being generated as: (notice no distinction between escaped html and the non-escaped html)

    &lt;a href='link'&gt;link&lt;/a&gt; &lt;script&gt;alert('hack you');&lt;/script&gt; 

    I made a change to the rss.php file so it turned it into this:

    &lt;a href='link'&gt;link&lt;/a&gt; &amp;lt;script&amp;gt;alert('hack you');&amp;lt;/script&amp;gt; 

    That way it was displayed in the RSS feed properly.

    Thanks!

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

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer I have been in a similar situation. I started using… May 11, 2026 at 11:27 am
  • added an answer The strftime (from Ruby's Time) and to_formatted_s (from Rails' ActiveSupport)… May 11, 2026 at 11:27 am
  • added an answer One can often find examples of beautiful XSLT code, especially… May 11, 2026 at 11:27 am

Related Questions

Suppose I am writing an application in C++ and C#. I want to write
I wrote an application server (using python & twisted) and I want to start
I want to write an Add-In for Visual Studio that provides instant search for
I want to write an Exception to an MS Message Queue. When I attempt
I want to write an app that takes in a model filename via cmd
How would one go about displaying taskbar notifications? I want to write an app
I want to write a function that takes an array of letters as an
I want to write a program in which plays an audio file that reads
I need to generate an XML file in C#. I want to write the
Working on an old site in asp classic. I want to write a function

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.