[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Plugins/HTMLComments/ -> Parser.js (source)

   1  var tagName  = config.tagName,
   2      attrName = config.attrName;
   3  
   4  matches.forEach(function(m)
   5  {
   6      // Decode HTML entities
   7      var content = html_entity_decode(m[0][0].substring(4, m[0][0].length - 3));
   8  
   9      // Remove angle brackets from the content
  10      content = content.replace(/[<>]/g, '');
  11  
  12      // Remove trailing dashes
  13      content = content.replace(/-+$/, '');
  14  
  15      // Remove the illegal sequence "--" from the content
  16      content = content.replace(/--/g, '');
  17  
  18      addSelfClosingTag(tagName, m[0][1], m[0][0].length).setAttribute(attrName, content);
  19  });


Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1