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:
  • (string) The excerpt.
Defined at:

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.

Related Functions

wp_trim_excerpt, wp_html_split, has_excerpt, the_excerpt, wp_embed_excerpt_more

Top Google Results

User discussions

wpseek mobile