Fixes issue #6: Allow HTML tags inside truncated elements