* [refac] change docContent->html to docContent->content.

This commit is contained in:
sunhao
2024-11-28 14:27:19 +08:00
committed by 丁永亮
parent 89e3e73988
commit 3e4756221b
7 changed files with 41 additions and 30 deletions
+2
View File
@@ -1680,10 +1680,12 @@ class doc extends control
$doc->object = $object;
}
if(!empty($doc->rawContent)) $doc->content = $doc->rawContent;
if($doc->contentType === 'doc' && is_string($doc->content)) $doc->content = htmlspecialchars_decode($doc->content);
if(is_string($doc->title)) $doc->title = htmlspecialchars_decode($doc->title);
if(!empty($doc->keywords) && is_string($doc->keywords)) $doc->keywords = htmlspecialchars_decode($doc->keywords);
unset($doc->rawContent);
if($docID) $this->doc->createAction($docID, 'view');
$this->send($doc);