mirror of
				https://github.com/Crazyco-xyz/48hr.email.git
				synced 2025-11-03 23:16:31 +01:00 
			
		
		
		
	Add TODO Comment to mail twig
This commit is contained in:
		
							parent
							
								
									01b56d97e9
								
							
						
					
					
						commit
						f367b4caf6
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -18,6 +18,14 @@
 | 
			
		|||
    </div>
 | 
			
		||||
    {% if mail.html %}
 | 
			
		||||
    <div>
 | 
			
		||||
 | 
			
		||||
        {# TODO: 
 | 
			
		||||
            Find a better solution for this monstrocity.
 | 
			
		||||
            Replaces clean html tag with styled one for readabbility. 
 | 
			
		||||
            Realistically, the entire iFrame or even website itself might be vulnerable.
 | 
			
		||||
            srcdoc='html' seems like a very, very unsafe method to me, unfortunately I havent found a better solution.
 | 
			
		||||
        #}
 | 
			
		||||
 | 
			
		||||
		<iframe srcdoc='{{ mail.html|replace({'<html>': '<html style="color: white"'}) }}'></iframe>
 | 
			
		||||
	</div>
 | 
			
		||||
    {% elseif mail.textAsHtml %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue