Elgg/Elgg — pull request #311 by migrax (2012-07-10 15:17:35+00:00)
Title: Fix duplicated tags caused by new htmlawed code

The new version of htmlawed duplicates closing tags, for instance in list created by tinymce.

This pull provides a test case for the error, and fixes it in htmlawed_tag_post_processor by checking that the $attributes parameter is set. If it ain't, then $element is a closing tag and should be returned as such.