You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to put jBBCode into a project of mine. For that, the code I've written fetches data from a database and puts that code through jBBCode, however, jBBCode seems to ignore returns completely. So text written in separate paragraphs make just a single paragraph. Is there any way to put every block of text between the p-tag in HTML without users having to put additional BBCode in their comments?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Auto-paragraphs are difficult to achieve. You can try to split the output by double linebreaks and insert tags there. But the error rate would probably be high. IMHO it would be much easier to implement a NodeVisitor that is applying nl2br() on all TextNodes.
Hello,
I'm trying to put jBBCode into a project of mine. For that, the code I've written fetches data from a database and puts that code through jBBCode, however, jBBCode seems to ignore returns completely. So text written in separate paragraphs make just a single paragraph. Is there any way to put every block of text between the p-tag in HTML without users having to put additional BBCode in their comments?
Thanks in advance.
The text was updated successfully, but these errors were encountered: