Replies: 3 comments 4 replies
-
Text_truncate is a really "dumb" function - you give it the text, and how many characters to show before it cuts off. It could be better - but slower- if it exploded spaces to make an array of words, loop through each word (counting characters) and rep-assembling the sentence up to the last word that fit.
Personally, I use CSS to cut the text off of an element
|
Beta Was this translation helpful? Give feedback.
-
@rica-carv |
Beta Was this translation helpful? Give feedback.
-
My new suggestion to solve this: - inspired by WP, they are best in this
See? As English programmers forgot about complicated European languages, we forgot about East languages too. Then add new method to parser f.e. e_trim_words() ... not change existing one |
Beta Was this translation helpful? Give feedback.
-
Shouldn't the
text_truncate
only truncate text after a word? Right now is truncating in the middle of words:I'm trying to use the
text_truncate
inside the batch news_shortcodes.php fileBeta Was this translation helpful? Give feedback.
All reactions