WordPress.org

Ready to get started?Download WordPress

Forums

Auto Delete Code from RSS feeds (1 post)

  1. kasljill
    Member
    Posted 2 years ago #

    Sorry for the semi-novice question.

    I am using RSS Poster Pro to pull blog posts onto my site. Unfortunately a lot of them come with social bookmarks or affiliate links at the bottom that make my blog look cheap.

    I've been hand deleting these items. Is there any hacks or code that I can use to auto-delete these items. I'll be able to pull the source code off of the blog's original site.

    RSS Poster says I can use something like (.*) to delete items inside of the HTML, but its not working. Example from RSS Poster: <div id=”crp_related”>(.*)</div> This will remove anything inbetween. This is the current code I've been trying to remove

    <div style="text-align:left; margin: 0px 0px 0px 0px;" ><script src="http://cdn.printfriendly.com/printfriendly.js" type="text/javascript"></script><img class="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-print-icon.gif" alt="Print Friendly"/><span class="printandpdf" style="font-size:14; margin-left:3px; color:#222e06;"> Print <img style="border:none;" src="http://cdn.printfriendly.com/pf-pdf-icon.gif" alt="Get a PDF version of this webpage" /> PDF </span></div>

    So I thought I could do <div style="text-align:left; margin: 0px 0px 0px 0px;" >(.*)</div> But this isn't working.

    I don't care whether I use RSS Poster's way of doing it or different code.

    THANK YOU FOR LOOKING AND RESPONDING!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags