, replace breaks with newlines and strip all tags. $value = strip_tags(preg_replace('##i', PHP_EOL, $value)); // also remove the timestamps that often come with LRC files return preg_replace('/\[\d{2}:\d{2}.\d{2}]\s*/m', '', $value); } public function set(Model $model, string $key, mixed $value, array $attributes): mixed { return $value; } }