• Resolved 2020media

    (@2020media)


    In the feed I am using, the <content> item contains HTML – it’s a table in fact. Within the table there are < br /> blocks.

    When the feed is parsed, the < br > blocks are removed as you’d expect but this means the words run together without a space. Is there a way of preserving < br /> blocks or replacing with a space?

Viewing 6 replies - 1 through 6 (of 6 total)
  • AC

    (@purplecodes)

    Themeisle Support

    Hi @2020media,

    Kindly share the feed URL that you are using so we can take a look.
    Also, are you displaying the feeds by importing the posts?

    Thread Starter 2020media

    (@2020media)

    here is an example

    https://itunes.apple.com/gb/rss/topsongs/genre=1/limit=10/xml

    content section

    <content type="html">
    <table border="0" width="100%"> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr valign="top" align="left"> <td align="center" width="166" valign="top"> <a ><img border="0" alt="Leigh-Anne - Don't Say Love artwork" src="https://is4-ssl.mzstatic.com/image/thumb/Music116/v4/ed/4b/1a/ed4b1a3e-2783-0b74-7427-a5f87e0a5b3e/5054197688089.jpg/100x100bb.png" /></a> </td> <td width="10"><img alt="" width="10" height="1" src="https://s.mzstatic.com/images/spacer.gif" /></td> <td width="95%"> <b><a t Say Love</a></b><br/> <a t Say Love - Single</a><br/> <a >Leigh-Anne</a> <font size="2" face="Helvetica,Arial,Geneva,Swiss,SunSans-Regular"> <br/> <b>Genre:</b> <a >Pop</a> <br/> <b>Price:</b> £0.59 </font> </td> </tr> </table> </td> </tr> <tr> <td> <font size="2" face="Helvetica,Arial,Geneva,Swiss,SunSans-Regular"> © Under Exclusive Licence to Warner Music UK Limited, ? 2023 MADEINTHE90S LIMITED</font> </td> </tr> </table>
    </content>

    I am not creating posts. I’m using the block inserter on a single page so it gets updates.

    Hi @2020media!

    Could you please provide us the URL to a page where the issue can be seen so we can take a closer look? If you’d like to import the posts, they are updated as well because the corn job runs by default every 60 minutes and fetches new content from the feed. It’s also possible to change that interval if you want to fetch posts more often.

    Thank you!

    Thread Starter 2020media

    (@2020media)

    here is a link to a demo site with the page using the Apple feed.

    https://wpdemo.2020staging.com/feeds/

    Plugin Support AndreeaR

    (@andreearadacina21)

    Hi @2020media,
    Thank you for choosing Feedzy!
    I looked at the URL you provided, and we have a helpful doc explaining how to achieve the desired behavior you mentioned: https://docs.themeisle.com/article/542-how-to-keep-html-in-feed-items-content.

    To make sure everything works smoothly, please remember to replace the URL in the List of feeds in your code with the specific feed URL you’re using.

    If you have any further questions or need additional assistance, please don’t hesitate to let us know.

    • This reply was modified 1 year, 4 months ago by AndreeaR.
    Thread Starter 2020media

    (@2020media)

    Many thanks, works perfectly!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘parsing html in content’ is closed to new replies.