$t = '"Confidence isn\'t gained over time and practice. Confidence is gained when you realize you choose your own path, you choose to fall, you choose not to fall.
If you are afraid to fall you fall because you are afraid. Everything is choice." - Daniel ILabaca';
$order = array("\r\n", "\n", "\r");
$text = str_replace($order, '<br/>', $t);
但在数据库中仍然是新行。
在插入之前我做htmlspecialchars(addslashes(trim($text)))