HTML errors when serving Spring MVC, but not when viewing the page statically
<p>I've downloaded a bootstrap template and I'm trying to serve the page using Thymeleaf and Spring MVC. When I open the actual page statically on my computer it shows up as it was shown online, but when I start my Spring Boot application I get errors in the parsing of the HTML file. 
Example:
rg.xml.sax.SAXParseException: Open quote is expected for attribute "onclick" associated with an  element type  "a".</p>

<p>All of the exceptions I get are with rg.xml.sax.SAXParseException and no matter how many I change it wants me to fix more so I realized this must be a configuration issue, because how else would it work statically.</p>

<p>So hoping I can get some pointers:
Here is the head of my HTML file:</p>

<pre><code>&lt;html xmlns:th="http://www.thymeleaf.org"&gt;

&lt;head lang="en"&gt;

&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;
&lt;meta name="viewport" content="width=device-width, initial-scale=1"/&gt;
&lt;meta name="description" content=""/&gt;
&lt;meta name="author" content=""/&gt;

&lt;title&gt;Stylish Portfolio - Start Bootstrap Theme&lt;/title&gt;

&lt;link href="../static/css/bootstrap.min.css"
      th:href="@{css/bootstrap.min.css}" rel="stylesheet"/&gt;

&lt;!-- Custom CSS --&gt;
&lt;link href="../static/css/stylish-portfolio.css"
      th:href="@{css/stylish-portfolio.css}" rel="stylesheet"/&gt;

&lt;!-- Custom Fonts --&gt;
&lt;link href="../static/font-awesome/css/font-awesome.min.css"
      th:href="@{font-awesome/css/font-awesome.min.css}" type="text/css"/&gt;
&lt;/head&gt;
</code></pre>

<p>Now, I thought this was a Thymeleaf issue, but I took all the Thymeleaf away and make the same file with this header and got the same HTML errors:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;

&lt;head&gt;

&lt;meta charset="utf-8"/&gt;
&lt;meta name="viewport" content="width=device-width, initial-scale=1"/&gt;
&lt;meta name="description" content=""/&gt;
&lt;meta name="author" content=""/&gt;

&lt;title&gt;Stylish Portfolio - Start Bootstrap Theme&lt;/title&gt;

&lt;link href="../static/css/bootstrap.min.css"/&gt;

&lt;!-- Custom CSS --&gt;
&lt;link href="../static/css/stylish-portfolio.css"/&gt;

&lt;!-- Custom Fonts --&gt;
&lt;link href="../static/font-awesome/css/font-awesome.min.css"/&gt;
&lt;link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css"/&gt;

&lt;/head&gt;
</code></pre>

<p>Here is the endpoint that is serving this content:</p>

<pre><code>@RequestMapping(value = "/test", method = RequestMethod.GET)
public static String test() throws RuntimeException {
    try{
        return "index_bootstrap";
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
}
</code></pre>

<p>Any pointers as to why I get errors like these would be a huge help:</p>

<pre><code>2016-12-27 20:53:16.956 ERROR 73461 --- [nio-8080-exec-1] o.thymeleaf.templateparser.ErrorHandler  : [THYMELEAF][http-nio-8080-exec-1] Fatal error during parsing

org.xml.sax.SAXParseException: Open quote is expected for attribute "onclick" associated with an  element type  "a".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) [xercesImpl-2.11.0.jar:na]

2016-12-27 20:53:16.959 ERROR 73461 --- [nio-8080-exec-1] org.thymeleaf.TemplateEngine             : [THYMELEAF][http-nio-8080-exec-1] Exception processing template "index2": Exception parsing document: template="index2", line 34 - column 36
2016-12-27 20:53:16.963 ERROR 73461 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Exception parsing document: template="index2", line 34 - column 36] with root cause

org.xml.sax.SAXParseException: Open quote is expected for attribute "onclick" associated with an  element type  "a".
</code></pre>