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}',
 '/&lt;(\/?('.$tag.')(?![a-z!])(([\'"]).*?\4|.*?)*?)&gt;/i',

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

Thanks in advance.
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to