summaryrefslogtreecommitdiff
path: root/plugins/format.tikiwiki.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/format.tikiwiki.php')
-rw-r--r--plugins/format.tikiwiki.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/format.tikiwiki.php b/plugins/format.tikiwiki.php
index c67f260..992ddd8 100644
--- a/plugins/format.tikiwiki.php
+++ b/plugins/format.tikiwiki.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Revision: 1.95 $
+ * @version $Revision: 1.96 $
* @package liberty
*/
global $gLibertySystem;
@@ -756,9 +756,9 @@ class TikiWikiParser extends BitBase {
}
// disable HTML in wiki page for now - very disruptive. should be changed into a per page setting - xing
- if( !empty( $contentPrefs['content_enter_html'] ) ) {
+ if( $gBitSystem->isFeatureActive('content_force_allow_html') || ($gBitSystem->isFeatureActive('content_allow_html') && !empty( $contentPrefs['content_enter_html'] ) ) ) {
$data = $gLibertySystem->purifyHtml($data);
- } elseif( !$gBitSystem->isFeatureActive( 'content_allow_html' ) ) {
+ } else {
// convert HTML to chars
$data = htmlspecialchars( $data, ENT_NOQUOTES, 'UTF-8' );
}