• Hi!

    Is there a chance you remove PHP_EOL in header and footer or make it configurabel (possibly with debug=”0″) ?

    I love your plugin, but with this state I can’t build urls scraping parts from other websites.

    EXAMPLE

    <a href='https://repository.pietma.com/nexus/service/local/repositories/releases/content/com/pietma/billoader/[wpws url="https://repository.pietma.com/nexus/service/local/artifact/maven/resolve?r=releases&g=com.pietma&a=billoader&c=win32&p=x86.zip&v=RELEASE" query="version" output="text" debug="0"]/billoader-[wpws url="https://repository.pietma.com/nexus/service/local/artifact/maven/resolve?r=releases&g=com.pietma&a=billoader&c=win32&p=x86.zip&v=RELEASE" query="version" output="text" debug="0"]-win32.x86_64.zip'>download</a>

    Should result in

    <a href='https://repository.pietma.com/nexus/service/local/repositories/releases/content/com/pietma/billoader/0.0.2/billoader-0.0.2-win32.x86_64.zip'>download</a>

    CHANGED CODE

    } else {
    
    			WP_Web_Scraper::$error = "Error fetching: ".$response->get_error_message();
    		}
    
            $ob_header = ""; # PHP_EOL
            $ob_footer = ""; # PHP_EOL
    
            if ( WP_Web_Scraper::$args['debug'] == 1 ){
                $ob_header = PHP_EOL.
                        '<!--' . PHP_EOL .
                        ' Start of web scrap (created by wp-web-scraper)'

    Thanks!

    Marti

    https://www.ads-software.com/plugins/wp-web-scrapper/

  • The topic ‘Remove PHP_EOF in header and footer’ is closed to new replies.