I found a solution, drawing from various different posts. I ended up putting the raw html in a new file (which isn't required) and included it as follows:
{% include 'FooBundle:Default:content.html.twig' %}
Then inside my content.html.twig
I surrounded my raw HTML code with raw
Twig tags:
{% raw %}
// RAW HTML CODE HERE
{% endraw %}