There is a code that displays text from a file in a block:
setInterval(function() { $.get("text.txt", function(data) { $("#content").text(data); }); }, 2000); Text.txt file:
пример1 пример2 The script displays the text in one line: example1 example2. How can I make the text displayed strictly as in the file?