26 lines
783 B
PHP
26 lines
783 B
PHP
<?php
|
|
|
|
/**
|
|
* @version CVS: 1.0.0
|
|
* @package com_highlights
|
|
* @subpackage mod_highlights
|
|
* @author Eddy Prosperi <eddy.prosperi@protocollicreativi.it>
|
|
* @copyright 2024 Eddy Prosperi
|
|
* @license GNU General Public License versione 2 o successiva; vedi LICENSE.txt
|
|
*/
|
|
defined('_JEXEC') or die;
|
|
|
|
use \Joomla\CMS\Filter\InputFilter;
|
|
|
|
$safe_htmltags = array(
|
|
'a', 'address', 'em', 'strong', 'b', 'i',
|
|
'big', 'small', 'sub', 'sup', 'cite', 'code',
|
|
'img', 'ul', 'ol', 'li', 'dl', 'lh', 'dt', 'dd',
|
|
'br', 'p', 'table', 'th', 'td', 'tr', 'pre',
|
|
'blockquote', 'nowiki', 'h1', 'h2', 'h3',
|
|
'h4', 'h5', 'h6', 'hr');
|
|
|
|
/* @var $params Joomla\Registry\Registry */
|
|
$filter = InputFilter::getInstance($safe_htmltags);
|
|
echo $filter->clean($params->get('html_content'));
|