Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Restore class-based skipping of elements. Useful for temporary markup…
Browse files Browse the repository at this point in the history
… shown as a stopgap until adapted content is ready.
  • Loading branch information
Roman Rudenko committed Jun 12, 2012
1 parent 8b48922 commit 09cd1ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/extractHTML.js
Expand Up @@ -55,6 +55,7 @@ var nodeName = function(node) {

return [].map.call(container.childNodes, function(el) {
var tagName = nodeName(el);
if ((' ' + el.className + ' ').match(' mobify-ignore ')) return '';
if (tagName == '#comment') return '<!--' + el.textContent + '-->';
if (tagName == 'plaintext') return el.textContent;
if (tagName == 'script' && ((/mobify\./.test(el.src) || /Mobify/.test(el.textContent)))) {
Expand Down

0 comments on commit 09cd1ea

Please sign in to comment.