Added allowed content filter as a listener for #toHtml and #toDataFormat.