html - getting CSS/browser forced new line with javascript -
I've found a text like this:
And then the browser (due to width etc) presents it like this:
One day I went to the park and then ate the apple < / Code>
Then, with which [escape] character, I should get a broken line? If the line was broken with
, then it was easy, but now it is not using any HTML tags to do this.
& lt; P & gt; One day I went to the park and & amp; Nbsp; Then & amp; Nbsp; Eat & amp; Nbsp; & Amp; Nbsp; Apple. & Lt; / P & gt;
"& amp; Nbsp;", (non-line breakable space) when used to create a space, then produces that behavior
Comments
Post a Comment