How to add line break in cell contents

How to add line break in cell contents

Starz26Starz26 Posts: 38Questions: 1Answers: 0
edited June 2012 in General
Greetings,

How do you add a break in the contents of the cell? I want to display items on two separate line within a table cell. I tried \r\n but it doens not break and
displays "
"

I am using DOM data and aoColumns

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    You do it just like you would in a regular table - i.e. with a
    . If
    is showing then something somewhere is escaping your HTML tags, but DataTables doesn't do that, so I would suspect its being done in your data source.

    Allan
  • Starz26Starz26 Posts: 38Questions: 1Answers: 0
    Thanks Allan. That did the trick.....
This discussion has been closed.