[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

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

   1  var tagName  = config.tagName,
   2      attrName = config.attrName;
   3  
   4  matches.forEach(function(m)
   5  {
   6      var entity = m[0][0],
   7          chr    = html_entity_decode(entity);
   8  
   9      if (chr === entity || chr.charCodeAt(0) < 32)
  10      {
  11          // If the entity was not decoded, we assume it's not valid and we ignore it.
  12          // Same thing if it's a control character
  13          return;
  14      }
  15  
  16      addSelfClosingTag(tagName, m[0][1], entity.length).setAttribute(attrName, chr);
  17  });


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