Skip to content

Commit 1b0a1fb

Browse files
committed
fix: conversione valori checklist da ckeditor
1 parent 47c53c6 commit 1b0a1fb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/checklists/modutil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function renderChecklist($check, $level = 1, $parent = 0, $has_images = false)
6161

6262
$result .= '
6363
<td style="border-top:0px;">
64-
<span class="text unblockable" style="'.(!empty($check->checked_at) ? 'text-decoration:line-through;' : '').'">'.htmlspecialchars($check->content, ENT_QUOTES, 'UTF-8').' </span>
64+
<span class="text unblockable" style="'.(!empty($check->checked_at) ? 'text-decoration:line-through;' : '').'">'.$check->content.' </span>
6565
</td>';
6666

6767
$result .= '

modules/checklists/src/ChecklistItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static function build(?Checklist $checklist = null, $contenuto = null, $i
4646

4747
$model->checklist()->associate($checklist);
4848
$model->id_parent = $id_parent;
49-
$model->content = $contenuto;
49+
$model->content = \Filter::sanitize($contenuto);
5050
$model->is_titolo = $is_titolo;
5151

5252
$model->findOrder();

0 commit comments

Comments
 (0)