Ir a la navegación
Ir a la búsqueda
Busca en cnbGuatemala con Google
7 bytes eliminados
, hace 7 años
Línea 92: |
Línea 92: |
| splitContent = _splitWords(contents[c].textContent || contents[c].toString()); | | splitContent = _splitWords(contents[c].textContent || contents[c].toString()); |
| } else { | | } else { |
− | var tag = $(contents[c]).clone(); splitContent = _splitHtmlWords(tag.contents()); for (var tagless in splitContent) {tag.empty(); splitContent[tagless] = tag.html(splitContent[tagless]).wrap('<p></p>').parent().html();}} for (var word in splitContent) { words.push(splitContent[word]); } } return words; }; function _splitWords(text) { | + | var tag = $(contents[c]).clone(); splitContent = _splitHtmlWords(tag.contents()); for (var tagless in splitContent) {tag.empty(); splitContent[tagless] = tag.html(splitContent[tagless]).wrap('<p></p>').parent().html();}} for (var word in splitContent) {words.push(splitContent[word]); } } return words; }; function _splitWords(text) { |
| return text.split(/\s+/); } | | return text.split(/\s+/); } |
| function _markupContent(tag, html) { | | function _markupContent(tag, html) { |