OSDN Git Service

Added pkwk_common_headers()
[pukiwiki/pukiwiki.git] / plugin / ruby.inc.php
1 <?php
2 /////////////////////////////////////////////////
3 // PukiWiki - Yet another WikiWikiWeb clone.
4 //
5 // $Id: ruby.inc.php,v 1.4 2004/07/31 03:09:20 henoheno Exp $
6 //
7
8 function plugin_ruby_inline()
9 {
10         if (func_num_args() != 2)
11         {
12                 return FALSE;
13         }
14
15         list($ruby,$body) = func_get_args();
16
17         if ($ruby == '' or $body == '')
18         {
19                 return FALSE;
20         }
21
22         $s_ruby = htmlspecialchars($ruby);
23         return "<ruby><rb>$body</rb><rp>(</rp><rt>$s_ruby</rt><rp>)</rp></ruby>";
24 }
25 ?>