title: Javascript inside HTML is not working in Airflow function
body: <p>I am trying to send an email alert using the PythonOperator with <code>email_callback</code> function as the <code>python_callable</code>. I have an Xcom which is in the form :</p>
  <pre><code>(('FileName1', 'OrgName1'), ('FileName2', 'OrgName2'))
  </code></pre>
  <p>I want to print the values in the HTML content in the email alert like this:</p>
  <pre><code>Files Processed Successfully:
  OrgName1 FileName1
  OrgName2 FileName2
  </code></pre>
  <p>I know that I have to use a loop and to use a loop I have to use  tag inside HTML content. I am able to get all the text outside the <code>&lt;script&gt;</code> tag but whenever I output something from it like <code>document.write(&quot;Hello&quot;)</code>, this just doesn't print anything in the email.</p>
  <p>The code:</p>
  <pre><code>def email_callback(**kwargs):
      task_instance = kwargs['task_instance']
      body = &quot;&quot;&quot;HELLO&lt;script&gt;document.write(&quot;Hello&quot;)&lt;/script&gt;&quot;&quot;&quot;
      send_email(
          to=[
              'eamil.ids'
          ],
          subject='Batch Job Status - ' + now.strftime(&quot;%m/%d/%Y&quot;),
          html_content=body
      )
  
  AllTaskSuccess = PythonOperator (
      dag=dag,
      python_callable=email_callback,
      trigger_rule=TriggerRule.ALL_SUCCESS,
      provide_context=True,
      task_id=&quot;AllTaskSuccess&quot;)
  </code></pre>
  <p>Am I missing something here?</p>