WordPress.org

Ready to get started?Download WordPress

Forums

WP Web Scraper
[resolved] on-click (2 posts)

  1. tingo
    Member
    Posted 3 years ago #

    Hi,
    I have in the scraped page an
    text
    The href would work fine as I correct the url towards an absolute one.
    The problem is the onclick.
    I tried to extend functions.php but it doesn't give the desired result. Any hint?

    if(!empty($wpwsopt['basehref']))
    $filtered_html = preg_replace('#onclick="window.open\(\'#','onclick="my_window.open(\'XXX'.$wpwsopt['basehref'],$filtered_html);

  2. Akshay Raje
    Member
    Plugin Author

    Posted 2 years ago #

    @tingo

    Try using the callback function for this. More details here - http://wordpress.org/extend/plugins/wp-web-scrapper/other_notes/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic