Hello,
I'm working on a dynamic site i came across this pice of code
<%if(!isEmpty(card.bottomtext)){%><p><%=card.bottomtext.replace(/\n/g,"
<p>")%></p><%}%>
what it appears to be doing is this
<p>text, text.
<p>
<p>text, text.</p>
and i dont know why the above text is in the db like this
text, text.
text, text.
Im trying to fix it to do this
<p>text, text.</p>
<p></p>
<p>text, text.</p>
or
<p>text, text.</p>
<p>text, text.</p>
Any help is greatly appreciated.
thank you
|