Remove html-Tags in tabulator text

This commit is contained in:
ma0068
2024-01-24 09:04:53 +01:00
parent 2f5d93daa2
commit b8c885c8a4
4 changed files with 26 additions and 12 deletions
@@ -107,11 +107,9 @@ class Notiz extends FHC_Controller
if(isset($_POST['typeId']))
$type = $this->input->post('typeId');
//var_dump($_POST);
if(!$type)
{
$result = error('kein Type für ID vorhanden', EXIT_ERROR);
$result = error('kein Type für ID vorhanden', ERROR);
$this->output->set_status_header(REST_Controller::HTTP_INTERNAL_SERVER_ERROR);
return $this->outputJson(getError($result));
+2 -1
View File
@@ -293,7 +293,8 @@ class Notiz_model extends DB_Model
TO_CHAR (CASE
WHEN n.updateamum >= n.insertamum THEN n.updateamum
ELSE n.insertamum
END::timestamp, 'DD.MM.YYYY HH24:MI:SS') AS lastUpdate
END::timestamp, 'DD.MM.YYYY HH24:MI:SS') AS lastUpdate,
regexp_replace(n.text, '<[^>]*>', '', 'g') as text_stripped
FROM
public.tbl_notiz n
JOIN