i have textarea
, want put <br/>
after every enter because put data in database. in database looks this:
<pre> text text2 text3 </pre>
the output in page looks like
<pre> texttex2tex3 </pre>
what can put <br/>
if clicked enter.. or if exist solution.
when outputting saved content, can use css rule white-space: pre;
on element contain content of textarea
.
it's safer outputting plain html content database.
Comments
Post a Comment