Created
January 19, 2018 21:56
-
-
Save victorkurauchi/c77d8f58dd99fa1dfc61c3bdc7ae88a8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// removing footer cause is generated by phantomjs | |
let readyHtml = '' | |
const initFooter = readyHtml.indexOf('<footer') | |
const endFooter = readyHtml.indexOf('</footer>') | |
const tagFooterIndex = initFooter - 1 | |
const tagEndIndex = endFooter + 9 | |
const tagfooter = readyHtml.substring(tagFooterIndex, tagEndIndex) | |
readyHtml = readyHtml.replace(tagfooter, '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment