Truncates a string to a charLimit, ignoring specified markup tags, with an optional "pretty" ellipsis ending.