ngsanitize problems with doctype

Fixes #902.

ngSanitize removes the doctype element.