Skip to content
Snippets Groups Projects
Commit 0db6e3a5 authored by JediKev's avatar JediKev
Browse files

forms: Render Instructions

This addresses issue 4493 where the system renders form instructions as
plain text instead of HTML. The data is saved in the db as encoded HTML and
upon pulling the data we do not decode it back to HTML for rendering.
parent 3d927fc2
Branches
Tags
No related merge requests found
......@@ -8,6 +8,7 @@ if($_REQUEST['id'] && !($form=DynamicForm::lookup($_REQUEST['id'])))
if($_POST) {
$_POST = Format::htmlchars($_POST, true);
$_POST['instructions'] = Format::htmldecode($_POST['instructions']);
$fields = array('title', 'notes', 'instructions');
$required = array('title');
$max_sort = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment