Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Take the provided url, and add it to a YQL query.
- var yql = 'http://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent('select * from html where url="' + site + '"') + '&format=xml&sort=alpha&sortdir=asc&callback=?';
- function cbFunc(data) {
- // If we have something to work with...
- if ( data.results[0] ) {
- // Strip out all script tags, for security reasons.
- data = data.results[0].replace(/<script[^>]*>[\s\S]*?<\/script>/gi, '');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement