Decode HTML entities
Decode HTML entities in page text before saving it to the database.
This commit is contained in:
		
							parent
							
								
									d9e2bddee4
								
							
						
					
					
						commit
						311a12b7ef
					
				| 
						 | 
				
			
			@ -25,7 +25,7 @@ class PageContent
 | 
			
		|||
    public function setNewHTML(string $html)
 | 
			
		||||
    {
 | 
			
		||||
        $this->page->html = $this->formatHtml($html);
 | 
			
		||||
        $this->page->text = $this->toPlainText();
 | 
			
		||||
        $this->page->text = html_entity_decode($this->toPlainText());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue