<?php
 function smarty_modifier_kihou_hatena($string=''){ if ( $string=='' ){return $string;} $string = str_replace("\r\n","\n",$string); $string = str_replace("\r","\n",$string); require_once('HatenaSyntax.php'); $hs = new HatenaSyntax(); $v = $hs->parse( preg_replace("{\t}","    ",$string) ); return $v; } ?>
