====== htmlok Plugin ====== ---- plugin ---- description: Allows to embed HTML and PHP in Wiki Pages author : saggi, glen email : saggi@gmx.de, glen@delfi.ee type : Syntax lastupdate : 2023-05-10 compatible : Jack Jackrum, Kaos depends : conflicts : confightmlok, htmlokay similar : confightmlok, htmlokay, htmlsafe, phpwikify tags : html, php securitywarning: allowsscript downloadurl: https://github.com/saggi-dw/dokuwiki-plugin-htmlok/archive/refs/tags/2023-05-10.zip bugtracker : https://github.com/saggi-dw/dokuwiki-plugin-htmlok/issues sourcerepo : https://github.com/saggi-dw/dokuwiki-plugin-htmlok/ donationurl: screenshot_img : ---- ===== Installation ===== ^:!: This plugin allows the use of HTML and PHP in releases after "Igor". In the DokuWiki core the HTML and PHP support has been removed since release "[[:changes#release_2023-04-04a_jack_jackrum|Jack Jackrum]]" for security reasons. Under this aspect, this plugin should also be considered critically! ^ | | ^:!: Before installation and use, please consider the [[faq:html#is_html_really_needed|alternatives]]! ^ Install the plugin using the [[extension|Extension Manager]] Plugin and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually. ===== Examples/Usage ===== :!: A simultaneously installed [[confightmlok]] ([[htmlokalt]]) with disabled processing leads to the source code and not the result is displayed! **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. The code of the plugin was taken from the original implementation in DokuWiki core. So the use is also the same: ===== Syntax ===== You can embed raw HTML or PHP code into your documents by using the ''%%%%'' or ''%%%%'' tags. (Use uppercase tags if you need to enclose block level elements.) HTML example: This is some inline HTML

And this is some block HTML

PHP example: echo 'The PHP version: '; echo phpversion(); echo ' (generated inline HTML)'; echo ''; echo ''; echo '
The same, but inside a block level element:'.phpversion().'
';
===== Configuration and Settings ===== |For HTML|You must activate ''Allow embedded HTML'' in the plugin configuration.| |For PHP|You must activate ''Allow embedded PHP'' in the plugin configuration.| === Change Log === {{rss>https://github.com/saggi-dw/dokuwiki-plugin-htmlok/commits/main.atom date}} ==== Comments ==== 1st: Thank you for restoring core functionality. 2nd: does not work yet, still see the html code, not the result. > You have to activate the config options ''htmlok'' and/or ''phpok'' in the plugin configuration. Has this been done? --- [[user>saggi|saggi]] //2023-04-06 11:06// >> Yes, in GUI-Config both Options set. $conf['plugin']['htmlok']['htmlok'] = 1; $conf['plugin']['htmlok']['phpok'] = 1; $conf['htmlok'] = '1'; $conf['phpok'] = '1'; Don't know if the different datatype is a problem? >>> Sorry, I can't recreate the problem. Is the code shown enclosed in code tags or just plain text? Can you open a thread about this on [[https://github.com/saggi-dw/dokuwiki-plugin-htmlok/issues|Github]] or in the [[https://forum.dokuwiki.org/|forum]]? --- [[user>saggi|saggi]] //2023-04-06 12:42// >>>> the problem is lower case html/php tags. please include both variants >>>>> All examples from [[#syntax]] work with the latest version. --- [[user>saggi|saggi]] //2023-04-13 11:06// >>>>>> I've reinstalled the plugin right before the test. without changes to the tags, nothing happens (just plain html code without the tags), with opening tag to upper case it's broken, with both uppercase it works like before??