• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newline character in table content

 
Robby Jain
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a table and it is populated using dom now elements in dom contain \n
i require that where there is \n it should act as new line character help !!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33671
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In HTML, <br /> serves as a new line. Can you do a string search and replace to convert to the HTML new line?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technically, in HTML it's <br>. <br/> is XHTML notation.

In preparation for HTML5, people should stop thinking along the XHTML lines.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic