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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -