sorich87/buddypress-group-email-subscription — pull request #1 by sorich87 (2012-03-12 13:06:50+00:00)
Title: Improve replacement of links in ass_convert_html_to_plaintext()

1. The current implementation breaks when a message contains an tag.
Solution: Replace all the `` by ``

2. All links in the messages are stripped, and it can affect their meaning.
E.g. the message "Visit this new awesome site", becomes "Visit this new awesome site" (which site is being referring to???)
Solution: Add `$message = preg_replace( "/(.*)<\/a>/i", "\\2 (\\1)", $message );` before the strip_tags line so that we get i.e. "Visit this new awesome site (http://linktoarandomsite.com)".