<p></p>中不识别\n,添加如下样式就可以了。

white-space: pre-line;