Skip to content

Commit

Permalink
fix editor field on save (not keeping html)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrestaSafe committed Nov 17, 2023
1 parent 415ca86 commit 44e2308
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion classes/PrettyBlocksModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public function updateConfig($stateRequest)
$existingConfig = json_decode($this->config, true);
$newConfig = json_decode($this->generateJsonConfig(), true);
$mergedConfig = array_merge($existingConfig, $newConfig);
$this->config = json_encode($mergedConfig);
$this->config = json_encode($mergedConfig, true);
$template_name = pSQL($stateRequest['templateSelected']);
$this->setCurrentTemplate($template_name);
$this->setDefaultParams($stateRequest['default']);
Expand Down
1 change: 0 additions & 1 deletion classes/prettyblocks/core/FieldCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,6 @@ public function secureTextEntry($string)
if ($this->allow_html) {
return \Tools::purifyHTML($string);
}

return \Tools::purifyHTML(strip_tags($string));
}

Expand Down

0 comments on commit 44e2308

Please sign in to comment.