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

Version Path
promethee-1.2.26 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.25 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.24 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.23 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.22 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.21 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.20 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.19 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.18 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.17 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.16 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.15 app/views/promethee/utils/_text-content-from-html.html.erb
promethee-1.2.14 app/views/promethee/utils/_text-content-from-html.html.erb