This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Newline character in table content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Newline character in table content" Watch "Newline character in table content" New topic

Newline character in table content

Robby Jain

Joined: Apr 30, 2012
Posts: 9
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

Joined: May 26, 2003
Posts: 32481

In HTML, <br /> serves as a new line. Can you do a string search and replace to convert to the HTML new line?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63195

Technically, in HTML it's <br>. <br/> is XHTML notation.

In preparation for HTML5, people should stop thinking along the XHTML lines.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you checked out Aspose?
subject: Newline character in table content
It's not a secret anymore!