Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_html_excerpt()

3 tags 1 category

wp_html_excerpt() — 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.

Inputs: $str (string): String to get the excerpt from. $count (int): Maximum number of characters to take. $more (string): Optional. What to append if $str needs to be trimmed. Defaults to empty string.

Returns string: The excerpt.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…