fixed safe_html for inline alerts

moved display code for alerts into a helper.
Ported back the safe_join that will escape the parts and mark as html_safe