I have a function that returns a snippet of JavaScript and/or HTML.
static public string SpeakEvil() { return \"
Use the Html.Raw helper.
@Html.Raw(StaticFunctions.SpeakEvil())