I have this:
<% @data = Item.where("category = 'entrees'") %> <table ALIGN=CENTER> <tr> <th>Item</th> <th>Comment</th> <th>Price</th> </tr> <% @data.each do |data| %> <tr> <td><%= data.item %></td> <td><%= data.comment %></td> <td><%= data.price %></td> </tr> <% end %> </table>
and I want this data in the Sqlite3 DB preserved when it is displayed the HTML table:
- 4 per serve”
I have tried: “\n” and “br” in angle brackets with and without a trailing " /" but the line-feed is not preserved and the text is printed the table cell as literal instead of behaving as a control character.
Is there a way to do what I want?