wp_html_excerpt
wp_html_excerpt ( $str, $count, $more = null )
Parameters:- (string) str String to get the excerpt from.
- (int) count Maximum number of characters to take.
- (string) more Optional. What to append if $str needs to be trimmed. Defaults to empty string.
Returns:Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Safely extracts not more than the first $count characters from HTML string.UTF-8, tags and entities safe prefix extraction. Entities inside will *NOT*
be counted as one character. For example & will be counted as 4, < as
3, etc.