コード例 #1
0
ファイル: demo.php プロジェクト: justinhernandez/convert
$html = any_wiki_tohtml($wiki);

echo '<hr/>';
echo '<h2>HTML produced by any_wiki_tohtml()</h2>';
echo '<hr/>';

echo '<pre>';
echo htmlspecialchars($html);
echo '</pre>';

echo '<hr/>';
echo '<h2>Back to Wiki by using any_wiki_towiki() on the html above</h2>';
echo '<hr/>';

echo '<pre>';
echo htmlspecialchars(any_wiki_towiki($html));
echo '</pre>';

echo '<hr/>';
echo '<h2>And after any_wiki_runtime() -- check the mailto address</h2>';
echo '<hr/>';

echo '<pre>';
echo htmlspecialchars(any_wiki_runtime($html));
echo '</pre>';

echo '<hr/>';
echo '<h2>This is the runtime text when we echo it inline</h2>';
echo '<hr/>';

echo any_wiki_runtime($html);
コード例 #2
0
ファイル: Wiki.php プロジェクト: justinhernandez/convert
 /**
  * Convert data
  *
  * @param   string  $data
  * @return  string
  */
 public function convert($data)
 {
     return strip_tags(any_wiki_towiki($data));
 }