James Culshaw
James Culshaw

Reputation: 1057

Stop MVC4 emitting script tag

I have a layout template that is xml and has no <script> tag in it. However when the page is generated <script/> has been generated as the first child element of the root element. Is there any way to turn this off?

Upvotes: 1

Views: 101

Answers (1)

dove
dove

Reputation: 20674

That's not default behaviour. Can you check the html of your view and make sure there is no empty script in there?

Upvotes: 1

Related Questions