Jump to content

Recommended Posts

Posted

I'm currently using the RSS Feed Loader module (https://modules.processwire.com/modules/rss-feed-loader/) to import an RSS feed. In the feed there is an 'description' field that has html markup inside. By default the html markup is stripped out by the module

Therefore i've used the option below to render the description including markup:

$rss->stripTags = false;

After adding this option, the values in the database are still escaped, e.g. like:

<h3 class="deprecated-h3">Description</h3>
<p>Description</p> 

Would it be possible to save  the description field directly into the database (including it's HTML markup)?

Posted

The module readme mentions a relevant option:

Quote

// tell it to encode any entities in the feed (default = true); 
$rss->encodeEntities = true;

You would set that to false if you don't want entities encoded.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...