cleanup: post model

This commit is contained in:
HDVinnie
2020-12-28 23:49:58 -05:00
parent a6f9d796dc
commit 9687ba484a
+1 -3
View File
@@ -104,9 +104,7 @@ class Post extends Model
*/
public function setContentAttribute($value)
{
$antiXss = new AntiXSS();
$this->attributes['content'] = $antiXss->xss_clean($value);
$this->attributes['content'] = (new AntiXSS())->xss_clean($value);
}
/**