1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-07-07 13:40:53 +02:00
ttrss/tw/filter-setup/paranoya.php

61 lines
1.5 KiB
PHP
Raw Normal View History

2007-05-30 06:45:53 +02:00
<?php
2007-05-19 09:34:02 +02:00
// WARNING:
//
// All tags used in configuration must be defined in tw/tw-tags.php file too.
//
$tw_paranoya_setup = array(
"a" => 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,
2007-08-15 04:30:02 +02:00
"target" => null,
2007-05-19 09:34:02 +02:00
),
"hr" => null, // without attributes
"br" => null,
"img" => array(
2007-05-20 03:45:17 +02:00
"width" => array( TW_NUM ), // 80 - default, number must be in range <60,120>
"height"=> array( TW_NUM ),
2007-05-19 09:34:02 +02:00
"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 <b> -> <strong>
"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,
);
2007-05-20 03:45:17 +02:00
?>