Hi, I'm doing a crud with a long text in one of the index columns, so far so good if it weren't for the fact that too much text is displayed in this column and I would like to limit the text a bit since there is the show option of the crud where I would show the whole text. Is there any way to limit the number of characters displayed in a td ?? can you with html? or javascript or something similar? I've been looking at limiting input characters and all this but, I don't need to limit it here as I need the user to be able to type a long text. But when it comes to showing it, it should be shortened somewhere.
With a function that you later call where you need it;
Where $text is the text you want to shorten and $length is the number of characters you want to print;
In the view you would call the function:
for instance.