replace \n\t from beautifulsoup
<p>Hello I am using BeautifulSoup 4 and i try to replace the "\n\t" characters from the soup text.</p>

<p>Here is my code:</p>

<pre><code>soup = BS(html_doc, "html.parser")
for tableItem in soup.find_all("td"):
    result = str(tableItem.string)
    result = result.replace("\n\t\", "")
    print(result)
</code></pre>

<p>This is my ouptut:</p>

<pre><code>\n', '\t\t\t\t\t\t\t\t\t\tTEXT_I_WANT\t\t\t\t\t\t\t\t\t
</code></pre>

<p>I tried several things with the encoding or with the beautifulsoup "NavigableString". Do I use a wrong encoding? Or are there special methods for beautifulsoup. (such like stripped_strings)</p>

<p>ps: I can replace TEXT_I_WANT but not "\n" or "\t"</p>