We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, is there a way to customise how \r\n\r\n characters are converted?
\r\n\r\n
I'm looking to have \r\n\r\n become </p>\n\n<p> (wrapped in paragraph tags, first tag is last tag of previous paragraph for this example sequence).
</p>\n\n<p>
Currently this package is producing <br/>\n<br/>\n and no paragraphs at all.
<br/>\n<br/>\n
Even if I was able to turn-off the automatic <br> insertion and do it outside of this package, that would be ok.
<br>
The text was updated successfully, but these errors were encountered:
Hello,
did you try to call the render method with the keepLinesparam set to false? https://github.com/chriskonnertz/bbcode/blob/master/src/ChrisKonnertz/BBCode/BBCode.php#L141
render
keepLines
false
Sorry, something went wrong.
Hi @chriskonnertz , I did indeed try that.
I've managed to get pretty much what I need using this function I found: https://gist.github.com/joshhartman/5381116
$this->autop($bbCode->render($image->description_en, true, false), true);
Maybe this will help someone with a similar issue. I think that function could be streamlined a bit for what I need, but it works.
chriskonnertz
No branches or pull requests
Hi, is there a way to customise how
\r\n\r\n
characters are converted?I'm looking to have
\r\n\r\n
become</p>\n\n<p>
(wrapped in paragraph tags, first tag is last tag of previous paragraph for this example sequence).Currently this package is producing
<br/>\n<br/>\n
and no paragraphs at all.Even if I was able to turn-off the automatic
<br>
insertion and do it outside of this package, that would be ok.The text was updated successfully, but these errors were encountered: