Hi,
  <p>Par exemple:<i>#if($context.user ==
«XWiki.Admin»)Vous êtes
  l'administrateur par défaut de ce wiki!#else
Vous êtes un utilisateur
 classique.#end</i></p> 
 This is HTML AFAIK and not wiki syntax so the input is indeed HTML. 
I meant the output you get once you parse this html content via xhtml->xwiki
parser. That output contains the "://" sequence.
  And this get's converted into xwiki/2.0
syntax as :
 Par exemple://#if($context.user == «XWiki.Admin»)Vous êtes
 l'administrateur
 par défaut de ce wiki!#else Vous êtes un utilisateur classique.#end//
 This is where the url like format appears . 
 I see the problem. So we need somehow to get the following instead:
 Par exemple~://#if($context.user == "XWiki.Admin")Vous
 l'administrateur par dŽfaut de ce wiki!#else Vous  un utilisateur
 classique.#end//
 I think this could be addressed with some rule like the following in
 the XHTML parser:
 * if there's a ":" character and if the next element is an italic
 start tag then escape the ":" with "~:"
 I'm already doing several checks in XWikiXhtmlEscapeHandler to
 automatically escape characters so that they are not mistaken for wiki
 syntax.
 Could you please create a jira issue for this with the content of this
 discussion?
 BTW the issue should be more generic since we have the same problem
 with the following input for example:
 <html><p>mailto:vincent@massol.net</p></html>
 This should generate the following in wiki syntax;
 mailto~:vincent@massol.net
 So basically any inline link format should get the ":" escaped when
 parsed by the XHTML parser. 
 
Ok, I will raise a jira issue for this.
Falling asleep.
Good night.
- Asiri