Cambios

Busca en cnbGuatemala con Google

22 bytes eliminados ,  hace 7 años
sin resumen de edición
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();
+
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) {
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) {