fix for entire html document being inserted with snippets