fixed escaping inside script
added a fix for style elements containing block elements