添加富文本解析

pull/1/head
Wayne 1 year ago
parent e79795b436
commit fee034837c
  1. 10
      app/common/model/Agreement.php

@ -50,4 +50,14 @@ class Agreement extends BaseModel
{
return self::get($agreementId, $with);
}
/**
* 详情:HTML实体转换回普通字符
* @param $value
* @return string
*/
public function getContentAttr($value): string
{
return htmlspecialchars_decode($value);
}
}

Loading…
Cancel
Save