We use an extended View class in your apps so we can use a string as a template. It writes it to a temp file in the app tmp directory, and then sets that file as view template. We do this for caching and performance reasons.
Alternatively you can pass your HTML as data like @Stagram suggested, and echo the variable in your view. Make sure you don't disable encoding on your data, to avoid serious security issues.