| Description | If your HTML has any A tags that do not have a HREF attribute then entire blocks of text are deleted.
A tags are most commonly used without HREF when providing anchor links within the content. eg: <a name="top"></a>
The problem is caused by a greedy match in function stripHTML (sendemaillib.php:1134)
$text = preg_replace("/<a.*href=[\"\'](.*)[\"\'][^>]*>(.*)<\/a>/Umis","[URLTEXT]\\2[ENDURLTEXT][LINK]\\1[ENDLINK]\n",$text);
If we replace the first greedy match with a saner match it will not be a problem:
$text = preg_replace("/<a[^>]*href=[\"\'](.*)[\"\'][^>]*>(.*)<\/a>/Umis","[URLTEXT]\\2[ENDURLTEXT][LINK]\\1[ENDLINK]\n",$text);
|