Visual Console Refactor: removed the html entities from the main model data output

Former-commit-id: c8dfcdd77c7138a6644a3e785f652619bd4b852c
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-16 09:49:50 +02:00
parent b0b1db5746
commit 8f48deca14
2 changed files with 10 additions and 0 deletions

View File

@ -213,6 +213,9 @@ final class Container extends Model
include_once $config['homedir'].'/include/functions_io.php'; include_once $config['homedir'].'/include/functions_io.php';
include_once $config['homedir'].'/include/functions_ui.php'; include_once $config['homedir'].'/include/functions_ui.php';
// Clean HTML entities.
$row = \io_safe_output($row);
$backgroundUrl = static::extractBackgroundUrl($row); $backgroundUrl = static::extractBackgroundUrl($row);
$backgroundImage = static::extractBackgroundImage($row); $backgroundImage = static::extractBackgroundImage($row);

View File

@ -669,6 +669,13 @@ class Item extends Model
throw new \Exception('error fetching the data from the DB'); throw new \Exception('error fetching the data from the DB');
} }
// Load side libraries.
global $config;
include_once $config['homedir'].'/include/functions_io.php';
// Clean HTML entities.
$row = \io_safe_output($row);
/* /*
* Retrieve extra data. * Retrieve extra data.
*/ */