Jump to content

prendre en compte caractère html dans variable string


Chlock

Recommended Posts

Bonjour, comment je peut faire pour que le html de ma chaine soit pris en compte

body = "<h1>"+taille.getText()+"</h1>< /br><h1>"+poids.getText()+"</h1>";

                                       //mon body
			        	MimeBodyPart content = new MimeBodyPart(); 
			        	try { 
			        	    content.setContent(body, "text/plain"); 
			        	} catch (MessagingException e) { 
			        	    e.printStackTrace(); 
			        	} 

J'ai essayer escapeHtml() et from html mais rien n'y fait

merci les amis

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...