item->pagination) && !$this->item->paginationposition && $this->item->paginationrelative) {
                        echo $this->item->pagination;
                    }
                    ?>
                    get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
                    || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') || $assocParam; ?>
                    get('show_title')) : ?>
                    
                    
                    
                         $params, 'item' => $this->item]); ?>
                    
                    
                    item->event->afterDisplayTitle; ?>
                    
                         $this->item, 'params' => $params, 'position' => 'above']); ?>
                    
                    get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
                        item->tagLayout = new FileLayout('joomla.content.tags'); ?>
                        item->tagLayout->render($this->item->tags->itemTags); ?>
                    
                    
                    item->event->beforeDisplayContent; ?>
                    get('urls_position', 0) === 0) : ?>
                        loadTemplate('links'); ?>
                    
                    get('access-view')) : ?>
                        item); ?>
                        item->pagination) && !$this->item->paginationposition && !$this->item->paginationrelative) :
                            echo $this->item->pagination;
                        endif;
                        ?>
                        item->toc)) :
                            echo $this->item->toc;
                        endif; ?>
                    
                    item->title = 'Licenza dei contenuti'){
                            $descrizione = $this->item->text;
                            $dom = new DOMDocument('1.0','UTF-8');
                            $dom->loadHTML(mb_convert_encoding($descrizione, 'HTML-ENTITIES', "UTF-8"));
                            //$dom->loadHTML(mb_convert_encoding($descrizione, 'HTML-ENTITIES', "UTF-8"), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
                            $xpath = new DOMXPath($dom);
                            $tags = $xpath->evaluate("//p");
                            foreach ($tags as $tag) {   
                                $tag->setAttribute("data-element", "legal-notes-body");
                            }
                            $descrizione = $dom->saveHTML();
                            echo $descrizione;
                        }else{
                            echo $this->item->text;
                        }
                    ?>
                    
                        
                            
                                 $this->item, 'params' => $params, 'position' => 'below']); ?>
                            
                            get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
                                item->tagLayout = new FileLayout('joomla.content.tags'); ?>
                                item->tagLayout->render($this->item->tags->itemTags); ?>
                            
                        
                        item->pagination) && $this->item->paginationposition && !$this->item->paginationrelative) :
                            echo $this->item->pagination;
                            ?>
                        
                        get('urls_position', 0) === 1) : ?>
                            loadTemplate('links'); ?>
                        
                        
                    get('show_noauth') == true && $user->get('guest')) : ?>
                        item); ?>
                        item->introtext); ?>
                        
                        get('show_readmore') && $this->item->fulltext != null) : ?>
                            getMenu(); ?>
                            getActive(); ?>
                            id; ?>
                            
                            setVar('return', base64_encode(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language))); ?>
                             $this->item, 'params' => $params, 'link' => $link]); ?>
                        
                    
                    item->pagination) && $this->item->paginationposition && $this->item->paginationrelative) :
                        echo $this->item->pagination;
                        ?>
                    
                    
                    item->event->afterDisplayContent; ?>