Avoid unsavory nodes inside head tag