Home Ask Login Register

Developers Planet

Your answer is one click away!

frosty February 2016

Parsedown for PHP blockquotes

I'm using Parsedown for a project. Having trouble with the quotes:

$text = ">here's a quote <br><br> reply to quote";
echo $Parsedown->text($text);

is outputting

        "here's a quote "
        " reply to quote"

whereas I want the blockquote to end after the second <br>, then have the reply as a simple p. How should the text be, does it use newlines not breaks or something?


CodeGodie February 2016

your string should be:

">here's a quote <br><br>

reply to quote"

Check here: http://parsedown.org/demo

Post Status

Asked in February 2016
Viewed 1,409 times
Voted 7
Answered 1 times


Leave an answer

Quote of the day: live life