Index pane and page pane defined by angular directive.
The html code stored in mongo is cleaned.