title: jinja2.exceptions.TemplateSyntaxError: unexpected char '&'
body: <p>I am deploying my machine learning model locally and use flask for that. I have my main.html and app.py but when I try to run it in the console I get the Error message above.</p>
  
  <p>I cannot find any "&amp;" in both files which is why I cannot solve the problem.</p>
  
  <p>I checked all files but could not find a char like "&amp;" and the debug mode just raises the error which I mentioned.</p>
  
  <p>This is the html form:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;style&gt;
  form {
      margin: auto;
      width: 35;
  }
  .result {
      margin: auto;
      width: 35;
      border: 1px solid 
  }
  &lt;/style&gt;
  &lt;head&gt;
      &lt;title&gt;Sales Prediction&lt;/title&gt;
  &lt;/head&gt;
  &lt;form action="{{url_for('main')}}" method="POST"&gt;
      &lt;fieldset&gt;
          &lt;legend&gt;Input values:&lt;/legend&gt;
          Week:
          &lt;input name="week" type="number" required&gt;
          &lt;br&gt;
          &lt;br&gt; Grad:
          &lt;input name="grad" type="number" required&gt;
          &lt;br&gt;
          &lt;br&gt; Preis:
          &lt;input name="preis" type="number" required&gt;
          &lt;br&gt;
          &lt;br&gt;
          &lt;input type="submit"&gt;
      &lt;/fieldset&gt;
  &lt;/form&gt;
  &lt;br&gt;
  &lt;div class="result" align="center"&gt;
      {%if result%}
          {%for variable, value in original_input.items()%}
              &lt;b&gt;{{variable}}&lt;/b&gt; : {{value}}
          {%endfor%}
          &lt;br&gt;
          &lt;br&gt; Predicted number of sales :
              &lt;p style="font-size:50px"&gt;{{result}}&lt;/p&gt;
      {%endif%}
  &lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and this is the app.py:</p>
  
  <pre><code>import flask
  import pickle
  import pandas as pd
  
  with open('model/model.pkl', 'rb') as f:
      model = pickle.load(f)
  
  app = flask.Flask(__name__, template_folder='templates')
  @app.route('/', methods=['GET', 'POST'])
  def main():
      if flask.request.method == 'GET':
          return(flask.render_template('main.html'))
      if flask.request.method == 'POST':
          week = flask.request.form['week']
          grad = flask.request.form['grad']
          preis = flask.request.form['preis']
          input_variables = pd.DataFrame([[week, grad, preis]],
                                         columns=['week', 'grad', 'preis'],
                                         dtype=float)
          prediction = model.predict(input_variables)[0]
          return flask.render_template('main.html',
                                       original_input={'week':week,
                                                       'grad':grad,
                                                       'preis':preis},
                                       result=prediction,
                                       )
  if __name__ == '__main__':
      app.debug = True
      app.run(host = '0.0.0.0', port = 5000)
  </code></pre>
  
  <p>As soon as I run it in the console I get</p>
  
  <p>jinja2.exceptions.TemplateSyntaxError: unexpected char '&amp;' at 250601</p>