コード例 #1
0
ファイル: Html.php プロジェクト: AllenLyu/ko
 public static function S2Html($sIn, $iMaxLength = 0)
 {
     if ($iMaxLength) {
         $sIn = self::S2Text($sIn, $iMaxLength, '...');
         $sIn = Ko_View_Escape::VEscapeHtml($sIn);
         $sIn = Ko_Html_WebParse::sParse($sIn, $iMaxLength, 'UTF-8');
     }
     return $sIn;
 }
コード例 #2
0
ファイル: Text.php プロジェクト: AllenLyu/ko
 public static function S2Html($sIn, $iMaxLength = 0)
 {
     if ($iMaxLength) {
         $sIn = Ko_Tool_Str::SSubStr_UTF8($sIn, $iMaxLength);
     }
     $sIn = Ko_View_Escape::VEscapeHtml($sIn);
     if ($iMaxLength) {
         $sIn = Ko_Html_WebParse::sParse($sIn, $iMaxLength, 'UTF-8');
     }
     return $sIn;
 }
コード例 #3
0
ファイル: Input.php プロジェクト: AllenLyu/ko
 private static function _IConvert_RICHHTML($vData, $sCharset)
 {
     if ($_REQUEST['texttype'] == 'plain') {
         $vData = nl2br(htmlspecialchars($vData));
     }
     return Ko_Html_WebParse::sParse($vData, 65535, $sCharset);
 }