[pmwiki-users] EnableHTML for php5.6

Derek Lerner lernaway at gmail.com
Tue Sep 22 10:21:38 CDT 2015


Hello all,

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

http://www.pmwiki.org/wiki/Cookbook/EnableHTML

I attempted the below but got... Fatal error: Cannot redeclare MyHtml()
(previously declared in /path-goes-here/enablehtml.php:10) in
/path-goes-here/enablehtml.php on line 10

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

 "MyHtml"
   );
 function MyHtml($matches) {
   return Keep('<'.$matches[1].'>');
 }
}
?>

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20150922/ea185489/attachment.html>


More information about the pmwiki-users mailing list