Function
Function
Function
Function
Function
Function
";
var bodyPlainTag = dojox.xmpp.util.createElement("body", {}, false) + dojox.xmpp.util.stripHtml(msg.body) + "";
/*
if (msg.xhtml){
if (msg.xhtml.getAttribute('xmlns') != dojox.xmpp.xmpp.XHTML_IM_NS){
//console.log("ChatService::sendMessage() - Cannot use this xhtml without the propper xmlns");
}else{
//FIXME do this in some portable way
//console.log("ChatService::sendMessage() - FIXME Serialize XHTML to string: ", msg.xhtml.toString());
}
}
*/
if (message.subject && message.subject != ""){
message.append(dojox.xmpp.util.createElement("subject",{},false));
message.append(message.subject);
message.append("");
}
message.append(bodyPlainTag);
message.append(html);
message.append(bodyTag);
message.append("