I have a table that is populated with data coming from a bank. One of the columns contains text that is sometimes long (more than 1000 characters). I want to limit the display of this text in the table to 300 characters and add a "read more" button if the user wants to display the rest.
I know how to do this by adding a tag in the text with HTML and the toggle
function of jQuery, but since the text comes from the database, I can not insert this markup.
Is there any other way?