mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Fix #2941
This commit is contained in:
@@ -86,10 +86,21 @@ class Note extends Model
|
||||
|
||||
/**
|
||||
* @param $value
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function setTextAttribute($value): void
|
||||
public function setTextAttribute(string $value): void
|
||||
{
|
||||
$this->attributes['text'] = e($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $value
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTextAttribute(string $value): string
|
||||
{
|
||||
return htmlspecialchars_decode($value, ENT_QUOTES);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user