combicart Posted June 29, 2018 Share Posted June 29, 2018 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)? Link to comment Share on other sites More sharing options...
Robin S Posted June 29, 2018 Share Posted June 29, 2018 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. 1 Link to comment Share on other sites More sharing options...
combicart Posted June 29, 2018 Author Share Posted June 29, 2018 Ah, totally overlooked this option. Setting this to false solved the problem! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now