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

<blockquote>
    <p>
        "here's a quote "
        <br>
        <br>
        " reply to quote"
    </p>
</blockquote>

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?

Answers


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

Search




Leave an answer