title: Applying twig filters in Drupal 8 Views Template
body: <p>I'm building a themed view in Drupal 8 using twig.  I'd like to use twig filters on the row.content variable in the views-view-unformatted.html.twig template.</p>
  
  <p>It seems that row.content is an array so twig's string manipulation doesn't work. However, it prints onto the page as a string (view is just a list of taxonomy terms).</p>
  
  <p>What I'd like to do is slugify the output so taxonomy terms with spaces can have valid hrefs. See the replace filter in the code below.</p>
  
  <pre><code>&lt;ul class="nav nav-tabs" role="tablist"&gt;
  {% for row in rows %}
    &lt;li role="presentation" class="{{loop.first ? 'active' : ''}}"&gt;
      &lt;a href="#{{row.content | replace({" ", "-"})}}" aria-controls="{{row.content}}" role="tab" data-toggle="tab"&gt;{{row.content}}&lt;/a&gt;
    &lt;/li&gt;
  {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
  <p>This will just output <code>&lt;a href="#"&gt;</code>.  Does anyone know how to access the raw text value that is output during twigs interpolation?</p>
  
  <p>Thanks!</p>