作者 lyh

gx

@@ -52,7 +52,11 @@ class CustomTemplateLogic extends BaseLogic @@ -52,7 +52,11 @@ class CustomTemplateLogic extends BaseLogic
52 if(!empty($info['html'])){ 52 if(!empty($info['html'])){
53 $info['is_renovation'] = 1; 53 $info['is_renovation'] = 1;
54 }else{ 54 }else{
55 - $info['html'] = "<main>".$info['text']."</main>"; 55 + if(strpos($info['text'],"<main>") === false){
  56 + $info['html'] = "<main>".$info['text']."</main>";
  57 + }else{
  58 + $info['html'] = $info['text'];
  59 + }
56 $info['html_style'] = "<style id='globalsojs-styles'></style>"; 60 $info['html_style'] = "<style id='globalsojs-styles'></style>";
57 $info['is_renovation'] = 0; 61 $info['is_renovation'] = 0;
58 } 62 }