title: Remove special characters ( \r, \n, \t ) using Xpath/Scrapy
body: <p>I am trying to remove special characters from xpath.
  I used the <strong>normalize-space()</strong></p>
  
  <p>here is my code before :</p>
  
  <pre><code>info = Selector(response).xpath('//table')
  for sel in info:
      item = FactureItem()
      item['montantTTC']  = sel.xpath('//tbody/tr/td[6]/text()').extract()
      yield item
  </code></pre>
  
  <p>result : </p>
  
  <p><a href="https://i.stack.imgur.com/CtT4D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CtT4D.png" alt="result"></a></p>
  
  <p>After using <strong>normalize-space()</strong>, the result gives me a one line and the <strong>for</strong> it does not work on this item.</p>
  
  <p>Here is my code after :</p>
  
  <pre><code>info = Selector(response).xpath('//table')
  for sel in info:
      item = FactureItem()
      item['montantTTC']  = sel.xpath('normalize-space(//tbody/tr/td[6]/text())').extract()
      yield item
  </code></pre>
  
  <p>result : </p>
  
  <p><a href="https://i.stack.imgur.com/z2OLT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z2OLT.png" alt="result"></a></p>