[xwiki-devs] New rendering don't parse and render xhtml properly

Sergiu Dumitriu sergiu at xwiki.com
Thu Jul 3 22:31:18 CEST 2008


Wang Ning wrote:
> Hi Vincent,
> 
> I am coding to handle the pictures in office document which need replace
> <img> to {image}. And remove some conflict between html content and xwiki
> syntax, such as <p>[somthing not link]</p>. At first, I want to use  regular
> expression to replace those tokens. Then I think it should be better if I
> use a xhtml parser. So I try the new WikiModelXHTMLParser.
> 
> So I think I just use regular expression to handle the html. Or any
> suggestion?
> 

Stay away from regular expressions as much as possible! Because of regular expressions the current 
WYSIWYG editor is so unstable.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/


More information about the devs mailing list