[thelist] PHP: How to detect a line break in a textfield

rudy r937 at interlog.com
Tue Feb 25 08:31:01 CST 2003


> sText = Replace(sText, vbCrLf & vbCrLf, "</p>" & vbCrLf & "<p>")
> sText = Replace(sText, vbCrLf, "<br />" & vbCrLf)

those two lines will end up generating this for two breaks in a row --

    </p><br />
    <p>







More information about the thelist mailing list