$string = \'text <span style=\"color:#f09;\">text</span> <span class=\"data\" data-url=\"http://www.google.com\">google.com</span>
I have various HTML strings to cut to 100 characters (of the stripped content, not the original) without stripping tags and without breaking HTML.
I\'ve got a list of websites for each US Congress member that I\'m programmatically crawling to scrape addresses. Many of the sites vary in their underlying markup, but this wasn\'t initially a proble