解析 PHP 个块引用
Parsedown for PHP blockquotes
我正在为一个项目使用 Parsedown。引号有问题:
$text = ">here's a quote <br><br> reply to quote";
echo $Parsedown->text($text);
正在输出
<blockquote>
<p>
"here's a quote "
<br>
<br>
" reply to quote"
</p>
</blockquote>
而我希望块引用在第二个 <br>
之后结束,然后将回复作为一个简单的 p
。文本应该如何,是否使用换行符而不是换行符或其他内容?
你的字符串应该是:
">here's a quote <br><br>
reply to quote"
我正在为一个项目使用 Parsedown。引号有问题:
$text = ">here's a quote <br><br> reply to quote";
echo $Parsedown->text($text);
正在输出
<blockquote>
<p>
"here's a quote "
<br>
<br>
" reply to quote"
</p>
</blockquote>
而我希望块引用在第二个 <br>
之后结束,然后将回复作为一个简单的 p
。文本应该如何,是否使用换行符而不是换行符或其他内容?
你的字符串应该是:
">here's a quote <br><br>
reply to quote"