Hi,
I have a string which contains HTML for eg;
"<strong>the fox jumped over the fence</strong>"
But if I truncate say at character 5, I'd loose the closing tag.
There could also be a range of potential html tags as well.
Anyone has any slick ideas how to write a routine, to add the closing tags back after a string cut.
Thanks
I have a string which contains HTML for eg;
"<strong>the fox jumped over the fence</strong>"
But if I truncate say at character 5, I'd loose the closing tag.
There could also be a range of potential html tags as well.
Anyone has any slick ideas how to write a routine, to add the closing tags back after a string cut.
Thanks