[pmwiki-users] EnableHTML for php5.6

Hans Bracker design at softflow.co.uk
Tue Sep 22 10:42:17 CDT 2015


> Is there a version of enablehtml.php that will work with php5.6?

try this for your enable.php file:

<?php if (!defined('PmWiki')) exit();
function EnableHtml($tag) {
  Markup_e(
  "html-$tag",
  '>{$var}',
  '/<(\/?('.$tag.')(?![a-z!])(([\'"]).*?\4|.*?)*?)>/i',
  'Keep(\'<\'.$m[1].\'>\')');
}


Best regards,
 Hans                         




More information about the pmwiki-users mailing list