- $output = "<noscript><div><p>" .
- "This page requires java-script. To view " .
- "this page without java-script goto " .
- "<a href='/pve-docs/$param1'>$param1</a>" .
- "</div></noscript>\n";
-
- # hack to inject html without modifications my mediawiki parser
- $encHtml = encodeURI($content);
- $output .= "<div id='pve_embed_data'></div>";
- $output .= "<script>" .
- "var data = decodeURI(\"".$encHtml."\");" .
- "document.getElementById('pve_embed_data').innerHTML = data;" .
- "</script>";
-
- return array($output, 'noparse' => true, 'isHTML' => true);
+ $output = '<--- @PVEDOCSHACK@ '.base64_encode($content).' @PVEDOCSHACK@ -->';
+ return array($output, 'noparse' => true, 'isHTML' => true);