title: How to remove single quotes from text in Flask template?
body: <p>I have this app.route in a Flask app that uses the Pafy module:</p>
  
  <pre><code>@app.route('/result', methods = ['POST', 'GET'])
  def result():
      if request.method == 'POST':
          video_url = request.form['url']
          video = pafy.new(video_url)
          video_title = video.title.strip('\'')
          video_author = video.author.strip('\'')
          video_likes = "{:,}".format(video.likes).strip('\'')
          video_views = "{:,}".format(video.viewcount).strip('\'')
          video_length = "{:,}".format(video.length).strip('\'')
          video_details = [video_title, video_author, video_likes, video_views, video_length]
          best = video.getbest(preftype="mp4")
          dl_video = best.download(quiet=False)
  
  
          return render_template('result.html', dl_video = dl_video, video_details=video_details)
  </code></pre>
  
  <p>this is then rendered as follows:</p>
  
  <pre><code>{% extends "base.html" %}
  {% block title %}Home{% endblock %}
  {% block body %}
  
  &lt;div class="jumbotron"&gt;
  
     &lt;body&gt;
  
     &lt;h2&gt;Your video is now downloading&lt;/h2&gt;
  
     {% if dl_video %}
  
  
     {% endif %}
  
     {% if video_details %}
  
        &lt;p&gt; {{ video_details }} &lt;/p&gt;
  
     {% endif %}
  
     &lt;/body&gt;
  &lt;/div&gt;
  
  
  {% endblock %}
  </code></pre>
  
  <p>however the text is still displayed with single quotation marks around all the data e.g.:</p>
  
  <pre><code>Your video is now downloading
  ['Blur - Song 2', 'emimusic', '492,402', '78,314,578', '122']
  </code></pre>
  
  <p>how can I remove this? I have tried with both strip(), replace() and even translator/maketrans with no luck.</p>
  
  <p>thanks</p>