Skip to content Skip to sidebar Skip to footer

Changing Relative Urls Of Javascript Files

I'm screen scraping using Curl like this:

Solution 1:

You can add a base tag to the scraped HTML.

Open it with an HTML parser like tidy, go to the start of the head section and append a <base> tag. A base tag will redirect all resource access to a known location .

Post a Comment for "Changing Relative Urls Of Javascript Files"