Sha256: 2d2f0458c22298ffd9b821a15b49b98b7b4981892b88e8427b5ecd0f2950f327
Contents?: true
Size: 456 Bytes
Versions: 73
Compression:
Stored size: 456 Bytes
Contents
<script> promethee.filter('textContentFromHTML', function() { return function(val, distinctParagraphs) { var element = document.createElement('div'); element.innerHTML = val; if(distinctParagraphs === 'distinctParagraphs') { var paragraphs = element.querySelectorAll('p'); for(var i = 0; i < paragraphs.length; i++) paragraphs[i].textContent += ' '; } return element.textContent; } }); </script>
Version data entries
73 entries across 73 versions & 1 rubygems