3 Jul
2008
3 Jul
'08
8:31 p.m.
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/