From da95ee096a32e5b38f9f20398021af2a34e36994 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Fri, 2 Nov 2007 01:55:45 +0000 Subject: [PATCH] Beef up HTML Purifier help message. Todo: make it hideable. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1435 48356398-32a2-884e-a903-53898d9a118a --- plugins/phorum/htmlpurifier.php | 42 ++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/plugins/phorum/htmlpurifier.php b/plugins/phorum/htmlpurifier.php index 4654c65d..ae2c276c 100644 --- a/plugins/phorum/htmlpurifier.php +++ b/plugins/phorum/htmlpurifier.php @@ -261,12 +261,42 @@ function phorum_htmlpurifier_editor_after_subject() { // don't show this message if it's a WYSIWYG editor, since it will // then be handled automatically if (!empty($GLOBALS['PHORUM']['mod_htmlpurifier']['wysiwyg'])) return; - ?> - HTML input is on. Make sure you escape all HTML and - angled-brackets with &lt; and &gt; (you can also use CDATA - tags, simply wrap the suspect text with -<![CDATA[text]]>. Paragraphs will only be applied to -double-spaces; single-spaces will not generate <br> tags. + ?> +

+ HTML input is enabled. Make sure you escape all HTML and + angled brackets with &lt; and &gt;. +

config; + if ($config->get('AutoFormat', 'AutoParagraph')) { + ?>

+ Auto-paragraphing is enabled. Double + newlines will be converted to paragraphs; for single + newlines, use the pre tag. +

getDefinition('HTML'); + $allowed = array(); + foreach ($html_definition->info as $name => $x) $allowed[] = "$name"; + sort($allowed); + $allowed_text = implode(', ', $allowed); + ?>

Allowed tags: .

+

+

+ For inputting literal code such as HTML and PHP for display, use + CDATA tags to auto-escape your angled brackets, and pre + to preserve newlines: +

+
<pre><![CDATA[
+Place code here
+]]></pre>
+

+ Power users, you can hide this notice with: +

.htmlpurifier-help {display:none;}
+