From 9daf4133bf6f61cbe3787a46b021d261242a85f0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 19 May 2007 08:34:02 +0100 Subject: add tagwall --- tw/filter-setup/paranoya.php | 59 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 tw/filter-setup/paranoya.php (limited to 'tw/filter-setup') diff --git a/tw/filter-setup/paranoya.php b/tw/filter-setup/paranoya.php new file mode 100644 index 000000000..0795c7755 --- /dev/null +++ b/tw/filter-setup/paranoya.php @@ -0,0 +1,59 @@ + array( + "href" => array( TW_RQ_URL ), // value is required url + "name" => array( TW_RQ_LINK ), // value is link (link+href combination must be fixed in base) + "title" => null, + ), + + "hr" => null, // without attributes + "br" => null, + "img" => array( + "width" => array( TW_NUM, 80, 60, 120 ), // 80 - default, number must be in range <60,120> + "height"=> array( TW_NUM, 80, 60, 120 ), + "src" => array( TW_RQ_URL ), + "title" => null, + "border"=> array( TW_RQ_NUM, 0, 0, 0), + ), + + "p" => array( + // null - default value (null = remove attr if value not found in case array) + "class" => array( TW_CASE, null, array("par1","par2","par3") ), + ), + + "b" => "strong", // tag substitution -> + "strong" => null, // new tag must be configured too + "i" => null, + "u" => null, + "div" => array( + "title" => null, + ), + + "span" => array( + "class" => array( TW_CASE, null, array("my-class1","my-class2","my-class3") ), + ), + + "blockquote" => null, + "h1" => null, + "h2" => null, + "h3" => null, + + "table" => null, + "td" => null, + "tr" => null, + "th" => null, + + "ul" => null, + "ol" => null, + "li" => null, + "dl" => null, + "dt" => null, + "dd" => null, + ); +?> \ No newline at end of file -- cgit v1.2.3