PATH:
home
/
centosnipponia
/
public_html
/
ts
/
vendor
/
mews
/
purifier
/
src
/
Casts
<?php namespace Mews\Purifier\Casts; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; class CleanHtmlInput implements CastsAttributes { use WithConfig; /** * Cast the given value. Does not clean the HTML. * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key * @param mixed $value * @param array $attributes * @return array */ public function get($model, $key, $value, $attributes) { return $value; } /** * Prepare the given value for storage by cleaning the HTML. * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key * @param array $value * @param array $attributes * @return string */ public function set($model, $key, $value, $attributes) { return clean($value, $this->config); } }
[+]
..
[-] CleanHtml.php
[edit]
[-] CleanHtmlInput.php
[edit]
[-] CleanHtmlOutput.php
[edit]
[-] WithConfig.php
[edit]
[-] .htaccess.disabled
[edit]