L
Leif K-Brooks
I just wrote a simple blog for myself (http://tw.ecritters.biz/), and I
want to add a comment feature. I can't let users use HTML in the posts,
because they could do all sorts of nasty things (their own CSS,
nonstandard HTML, ECMAScript, etc.), so how should I format them? Put
them a <p> element and turn new lines to <br>s? Put it in a <pre> even
though they won't wrap? Turn two or more new liens into </p><p> and
single new lines into <br>s? Something else?
want to add a comment feature. I can't let users use HTML in the posts,
because they could do all sorts of nasty things (their own CSS,
nonstandard HTML, ECMAScript, etc.), so how should I format them? Put
them a <p> element and turn new lines to <br>s? Put it in a <pre> even
though they won't wrap? Turn two or more new liens into </p><p> and
single new lines into <br>s? Something else?