Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Replace text files newline with and tabs with  

$
0
0

How would I do this? I tried using something simple like String.replace("An actual tab here."," ") but it doesn't work.

Also I tried using the same with String.replace("\n","<br>") with no luck there either.

If I use the javascript's alert() function it does show my string correctly with tabs and new lines though, I'm assuming because it uses the text's actual formatting properly where-as in html it basically discards them for display purposes.


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>