title: How to remove white space from html source code
body: <p>I am using django and python. In the template file, I have a drop-down list which is shown as below. It works. The only problem is that there is a lot of white space between  in the source html code. Is there any way to remove the white space? Thanks.</p>
  
  <pre><code>           {% for lang_ele in video.languages.all %}
                {% ifequal lang_ele.lang display_language  %}
                     {% for key, value in language_table.items %}
                         {% ifequal lang_ele.lang key%}
                           &lt;option selected = "selected" value={{lang_ele.lang}}&gt;{{value}}&lt;/option&gt;
                         {% endifequal %}
                     {% endfor %}
                {% else %}
                     {% for key, value in language_table.items %}
                         {% ifequal lang_ele.lang key%}
                           &lt;option value={{lang_ele.lang}}&gt;{{value}}&lt;/option&gt;
                         {% endifequal %}
                     {% endfor %}
  
                {% endifequal %}
             {% endfor %}
  </code></pre>
  
  <p>The output html souce code looks like this:</p>
  
  <pre><code>&lt;option value=de&gt;German&lt;/option&gt; 
  
  
  &lt;option value=el&gt;Greek&lt;/option&gt; 
  
  
  &lt;option value=hi&gt;Hindi&lt;/option&gt; 
  </code></pre>