I want to be able to display a string of characters up to 10 characters. If the string goes over 10 characters, I\'d like to append \'...\' to the end.
For example, if
The best way is using:
text-overflow: ellipsis;
in your css
This will restrict your text to the width of the container. If the text exceeds the width, it will instead be displayed with an ellipsis (...).
This may help: https://www.w3schools.com/cssref/tryit.asp?filename=trycss3_text-overflow