Function
cleans content to make it less likely to generate DOM/JS errors.
useful if you send ContentPane a complete page, instead of a html fragment scans for * title Node, remove * DOCTYPE tag, remove