I am trying to simply replace some new lines and have tried three different ways, but I don't get any change:
$description = preg_replace('/
?
|
/', '<br/>', $description);
$description = str_replace(array("
", "
", "
"), "<br/>", $description);
$description = nl2br($description);
These should all work, but I still get the newlines. They are double: "
". That shouldn't make any of these fail, right?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…