Removing specific html from rss during import

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

This topic has 5 replies, 2 voices, and was last updated 4 years, 4 months ago by Szabi – CodeRevolution.

Viewing 5 reply threads
  • Author
    Posts
    • #1824


      yachtfocus
      Participant
      Post count: 2

      Hi,

      I need to remove the following html tags from the RSS when importing a feed:

      – figure
      – figcaption

      How can I do that? There are no classes assigned to both tags.

      Kind regards,

      Jeroen Zelle

    • #1825


      Szabi – CodeRevolution
      Keymaster
      Post count: 4620

      Hello,

      First of all, thank you for your purchase.

      You can try removing these tags using a Regex. Please set in importing rule settings:

      ‘ Run Regex On Content:’ =>      #<figure>[\s\S]*?<\/figure>#

      Save settings -> import new posts.

      Regards, Szabi – CodeRevolution.

    • #1839


      yachtfocus
      Participant
      Post count: 2

      Hi,

      Thanks, but it’s not really working. And I forgot to mention that I want to strip the tag with it’s contents.

      How can I do that?

       

    • #1840


      Szabi – CodeRevolution
      Keymaster
      Post count: 4620

      Please send me a post example URL, where I can see the figure tag you wish to remove (please highlight it).

      Regards.

    • #1841


      yachtfocus
      Participant
      Post count: 2

      Hi,

      No longer needed 🙂 found the issue at the site which creates the rss feed.

      Lazyloading was enabled and also did that on the feed. So excluded the feed from putting lazyloaded tags on the images.

      Kind regards,
      Jeroen

    • #1842


      Szabi – CodeRevolution
      Keymaster
      Post count: 4620

      Ok, great! 🙂

      Stay safe.

Viewing 5 reply threads

The topic ‘Removing specific html from rss during import’ is closed to new replies.