powered by Jive Software

xhtmlText and , <br>

Here my method which transform a String (message) and send it to the muc.

Message msg = muc.createMessage();


XHTMLText xhtmlText = new XHTMLText(null, null);




XHTMLManager.addBody(msg, xhtmlText.toString());


The problem is that message contains spaces which mustn’t be ignored (3 spaces next to each other) so I’d like to transform to the unbreakable space but I can’t because the html code is transformed. Same problem with \n and br.

How can I do ? Without hack if possible.

Thank you.

I think you can consider this as a bug report or a feature request. I’ll can’t use this feature (xhtml) due to this little issue :/.

no one ? :confused: