完成博客的不分页面

This commit is contained in:
augushong
2020-04-24 13:04:56 +08:00
parent d07fd05f65
commit 3a36960c9c
8 changed files with 560 additions and 0 deletions

12
app/common/TextFormat.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
namespace app\common;
class TextFormat
{
public static function br($content){
$content = str_replace("\n",'<br/>',$content);
return $content;
}
}