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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:07:36+00:00 2026-05-26T17:07:36+00:00

I have create an rss feed, all things is going to work well, but

  • 0

I have create an rss feed, all things is going to work well, but in this xml code

<description><![CDATA[****no php is allowed here****]]></description>

here is my view that generate the xml file

<?php 
echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">

    <channel>

    <title><?php echo $feed_name; ?></title>

    <link><?php echo $feed_url; ?></link>
    <description><?php echo $page_description; ?></description>
    <dc:language><?php echo $page_language; ?></dc:language>
    <dc:creator><?php echo $creator_email; ?></dc:creator>

    <dc:rights>Copyright <?php echo gmdate("Y", time()); ?></dc:rights>
    <admin:generatorAgent rdf:resource="http://www.codeigniter.com/" />

    <?php foreach($posts as $entry): ?>

        <item>

          <title><?php echo $entry->title_nw; ?></title>
          <link><?php echo site_url('view=entry'.'&amp;'.'id=' . $entry->id_nw); ?></link>
          <guid><?php echo site_url('blog/post/' . $entry->url_title); ?></guid>

          <description><![CDATA[
      <?php character_limiter($entry->text_nw, 200); ?>
      ]]></description>
      <pubDate><?php echo $entry->date_nw;?></pubDate>
        </item>


    <?php endforeach; ?>

    </channel></rss>

please scroll down and you can see this code

      <description><![CDATA[
  <?php character_limiter($entry->text_nw, 200); ?>
  ]]></description>

here is the problem that this code is not acceptable in the description tag

  • 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-05-26T17:07:37+00:00Added an answer on May 26, 2026 at 5:07 pm

    IIRC character_limiter() doesn’t echo results, just returns them. So:

    1) make sure you’ve loaded the text helper in your controller before calling that function
    2) try with:

    <description><?php echo htmlspecialchars(character_limiter($entry->text_nw, 200)); ?></description>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service that uses a System.ServiceModel.Syndication.SyndicationFeed to create an RSS feed.
I have an application that reads an rss feed, parses the xml and adds
Is there a way to create an RSS feed that only customers who have
I want to create an in-house RSS feed (I work for 3 Mobile, Australia)
I have a website that I need to create an RSS feed for. Is
I am planing to display Rss feed inside an Androind app I have this
I have to create an RSS feed for the ASP.NET website I am developing.
I have successfully created a simple RSS feed, but entries keep coming back as
I have create name range on sheet A so I need to use this
i have create a form (so it's PHP and HTML hybrid-code). it has ability

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.