I have a “description field” in my database. This field contains line feeds. When I send this field to the web ALL line feeds disappear.
https://jsfiddle.net/8p1xjrsd/2/
Any tip how to preserve “line feeds” when sending to html?
td
<td class="newlines">
<i> </i>.newlines { white-space: pre }
> @NogDog#1618207 You could add a class to the td element, e.g. <td class="newlines">, and in your CSS:
``<i> </i>p { white-space: pre-wrap; }<i> </i>``
<i> </i>p { white-space: pre-wrap; }<i> </i>
Help @sibert spread the word by sharing this article on Twitter...