메소드 | 설명 | |
---|---|---|
close_tags ( string $html ) : string | ||
trim_characters ( string $text, integer $num_chars = 60, string | null $more = null ) : string | Trims text to a certain number of characters. | |
trim_words ( string $text, integer $num_words = 55, string | null | false $more = null, string $allowed_tags = 'p a span b i br blockquote' ) : string |
public static trim_characters ( string $text, integer $num_chars = 60, string | null $more = null ) : string | ||
$text | string | Text to trim. |
$num_chars | integer | Number of characters. Default is 60. |
$more | string | null | Optional. What to append if $text needs to be trimmed. Default '…'. |
리턴 | string | trimmed text. |
public static trim_words ( string $text, integer $num_words = 55, string | null | false $more = null, string $allowed_tags = 'p a span b i br blockquote' ) : string | ||
$text | string | |
$num_words | integer | |
$more | string | null | false | text to appear in "Read more...". Null to use default, false to hide |
$allowed_tags | string | |
리턴 | string |