The HTML code is pretty much like this
<div class="place" style="top: 4px;">
<span class>text</span>
<span class>text</span>
<span class>text</span>
</div>
For example with this code
let text = document.querySelector("div.place").textContent; //grab all text
I get all the text like this: thisisanexampletext
Is there a way to get text with spaces after each word?
like this: this is an example text
textContentwould have worked...textContentreturns text content as it is - with whitespaces.document.querySelector("div.place").innerTextwill do?