dontpunchme
Programmer
Hi,
I have a field that is displayed on my website. It currently has a few hundred characters in it.
Is there a script I can wrap around it, to limit the number of characters to show the first 150? Also.. is there a way to not have it cut off in the middle of a word?
Sample:
(Before)
Peja Stojakovic scores 16 of his 20 points in the second half to lead the Kings to a 94-92 win over Dallas, putting Sacramento one win away from advancing to the next round.
(After)
Peja Stojakovic scores 16 of his 20 points in the second half to lead the Kings to a 94-92 win over Dallas, putting Sacramento one win away...
Thanks for your help.
Mike
I have a field that is displayed on my website. It currently has a few hundred characters in it.
Is there a script I can wrap around it, to limit the number of characters to show the first 150? Also.. is there a way to not have it cut off in the middle of a word?
Sample:
(Before)
Peja Stojakovic scores 16 of his 20 points in the second half to lead the Kings to a 94-92 win over Dallas, putting Sacramento one win away from advancing to the next round.
(After)
Peja Stojakovic scores 16 of his 20 points in the second half to lead the Kings to a 94-92 win over Dallas, putting Sacramento one win away...
Thanks for your help.
Mike