I am busy with a project to convert an Joomla 3 template to Joomla 4. The Jinput is not giving me RAW data it is removing the script tags from my inputs. I worked through a couple of similar problems on the web still could not get it right.
The XML for the field is
<field name="fieldname" type="editor" default="<script> </script>" label="Add code to the top < head >" description="" rows="10" cols="5" filter="raw" editor="codemirror|none"/>
The input code is
$app = JFactory::getApplication();
$input = $app->input;
$post = $input->post->getArray();
I am getting the values in the following foreach loop
foreach (array_keys($post['jform']['params']) as $param) {
$value = $post['jform']['params'][$param];
}
Thanks in advance