Created
April 8, 2017 18:50
-
-
Save sampsonbryce/f6e2a8ba2836ac58e4aa9b0ff3d83d68 to your computer and use it in GitHub Desktop.
Function to scrape html of content from page to make searchable pdfs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getHtml(){ var w = window.open(); $(w.document.body).append('<input type="textarea" />').text($('section[role="main"]').find('iframe').contents().find('html').html()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment