示例#1
0
 function do_inline($page, $param1, $param2)
 {
     $id = htmlspecialchars(trim($param1));
     $html = convert_inline($param2, $page->getpagename());
     $str = mb_eregi_replace('(?:<a\\s.*?>|</a>)', '', $html);
     return "<a href=\"#{$id}\">" . $str . '</a>';
 }
示例#2
0
 function do_inline($page, $param1, $param2)
 {
     $url = SCRIPTURL . '?' . htmlspecialchars($param1);
     if (trim($param2) == '') {
         $alias = htmlspecialchars($url);
     } else {
         $alias = mb_eregi_replace('(?:<a\\s.*?>|</a>)', '', convert_inline($param2, $page->getpagename()));
     }
     return "<a href=\"{$url}\">{$alias}</a>";
 }
示例#3
0
文件: a.inc.php 项目: riaf/kinowiki
 function do_inlinetag($page, $param1, $param2)
 {
     static $list = array('href', 'title', 'target');
     $arg = tagparam2array($param1);
     $array = array();
     foreach ($list as $key) {
         if (isset($arg[$key])) {
             $array[] = htmlspecialchars($key) . '="' . htmlspecialchars($arg[$key]) . '"';
         }
     }
     $html = convert_inline($param2, $page->getpagename());
     $str = mb_eregi_replace('(?:<a\\s.*?>|</a>)', '', $html);
     $attr = join(' ', $array);
     return "<a {$attr}>{$str}</a>";
 }
示例#4
0
 function do_inline($page, $param1, $param2)
 {
     $size = htmlspecialchars(trim($param1));
     return "<span style=\"font-size: {$size}\">" . convert_inline($param2, $page->getpagename()) . '</span>';
 }
示例#5
0
 function do_inline($page, $param1, $param2)
 {
     $color = htmlspecialchars(trim($param1));
     return "<span style=\"color: {$color}\">" . convert_inline($param2, $page->getpagename()) . '</span>';
 }
示例#6
0
 function do_inline($page, $param1, $param2)
 {
     return "<del>" . convert_inline($param2, $page->getpagename()) . '</del>';
 }