*8596* Fix allowed_html template
*8604* Move common submission header code to lib