Skip to content

Commit

Permalink
improve max_input_length config #2499
Browse files Browse the repository at this point in the history
  • Loading branch information
numew committed May 7, 2024
1 parent bb97b56 commit ebfbfbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/packages/html_sanitizer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ framework:
th: ''
td: ''
drop_elements: ['img']
max_input_length: 20000000
4 changes: 1 addition & 3 deletions src/Entity/Suivi.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ public function getDescription($transformHtml = true): ?string
return $this->description;
}

$transformed = str_replace('&lt;br /&gt;', '<br />', $this->description);

return $transformed;
return str_replace('&lt;br /&gt;', '<br />', $this->description);
}

public function setDescription(string $description): self
Expand Down

0 comments on commit ebfbfbd

Please sign in to comment.