I have a bootstrap panel that contains text that was previously inserted by the user. The user text may contain new lines.
What's the best way do display those new lines? I've found this answer and it works if I put a <p>
element inside the div
. Another answer seems impossible since it would require text replacing, that may be problematic.
Is this the best approach? Will it work on major browsers?