title: Rendering bs4.Tag's text with Django Templates
body: <p>I'm trying to render the text from bs4 Tags using Django Template Language.</p>
  
  <p>For some reason bs4.Tag.text isn't accessible from template. I can render it's text only if I get it before and pass itself to template instead of Tag object.</p>
  
  <p>Here is code that I used:</p>
  
  <pre><code>from django.template import Template, Context
  
  from bs4 import BeautifulSoup
  
  
  html_string = '&lt;p&gt;Some text.&lt;/p&gt;'
  soup = BeautifulSoup(html_string)
  tag = soup.find('p')
  template = Template('{{ tag.text }} - {{ tag_text }}')
  context = Context({'tag': tag, 'tag_text': tag.text})
  print(template.render(context))
  </code></pre>
  
  <p>Expected output:
  <code>Some text. - Some text.</code></p>
  
  <p>Actual output:
  <code>- Some text.</code></p>
  
  <p>I feel confused a bit. For my purposes it's necessary to pass raw bs4.Tag objects to extract text and other attributes after. Hope you can help me</p>