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

  • SEARCH
  • Home
  • 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 9325123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T04:45:57+00:00 2026-06-19T04:45:57+00:00

I have a Drupal site setup. The rss that it sends out for the

  • 0

I have a Drupal site setup. The rss that it sends out for the feed is simple, the page has one image and some text for testing.

In another environment – non Drupal – I am importing the feed on a jsp page with transforming the xml.

<c:import url="http://myfeedurl/rss.xml" var="inputDoc" scope="session"/>
<c:import url="drupal.xsl" var="stylesheet" />
<x:transform xml="${inputDoc}" xslt="${stylesheet}"/>

Everything works properly, as in grabbing the xml stream and rendering it on the page. However it is spitting out the html tags in the content. So instead of seeing “This is a test” I am seeing <div class="field-item even" property="content:encoded"><p>This is a test</p> </div>

I am wondering if this is a Drupal rss issue, or if I need something on my rendering end. I have done this before with other rss feeds and it displays properly.

When you view the source on the correct rss feeds the xml is all there in the tags as it is supposed to be.

When you view the source on this drupal feed it looks like this &lt;div class=&quot;field-item even&quot; property=&quot;content:encoded&quot;&gt;&lt;p&gt;This is a test&lt;/p&gt;
&lt;/div&gt;
instead of html.

Any help would be appreciated….

  • 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. Editorial Team
    Editorial Team
    2026-06-19T04:45:58+00:00Added an answer on June 19, 2026 at 4:45 am

    Drupal is using HTML entities to preserve the tags. If you don’t want that, you need to strip them on Drupal’s side of things. The exact method depends on the way you generate the feed.

    If you do want them, you need to decode the entities before rendering it, otherwise the escaped entities will show up as characters. You can use http://commons.apache.org/lang/api-2.6/org/apache/commons/lang/StringEscapeUtils.html#unescapeHtml%28java.lang.String%29 for this.

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

Sidebar

Related Questions

I have a rather complicated deploy setup for our Drupal site that is a
I have a Drupal 7 site that has downloadable resources (PDF files) in blocks
I have a Drupal 6 site with a node type that has an optional,
i would like to have a block on my drupal site(latest version) that displays
I need to develop a site on Drupal 7. I have some content types
I have an html page that calls some javascript and jQuery functions and also
I have a Drupal 7 site, and I would like to print out inside
I have an old drupal site that I'd like to upgrade, but I need
I have a drupal site, and am trying to use php to grab some
I have a Drupal 6 site with a simple theme I'm creating called NPT.

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.