word limit issue with HTML tags
-
The limit_words function appears to fail when the first word beyond the in the limited text is an HTML tag.
in includes/event/event-builder.php line 596
$text = trim( substr( $text, 0, $pos[ $limit ] ) ) . ‘…’;the trimmed text includes the preceding character of first trimmed out word. So if the text being trimmed is “Hello <span>World</span>” when we limit to 1 word, we get “Hello <“.
This causes rendering issues in the remainder of the <td>
- The topic ‘word limit issue with HTML tags’ is closed to new replies.