Vincent Massol schrieb:
Is it
possible to get the first 400 characters in XWiki syntax and
convert this extract to HTML? This could lead to an unwanted result
too but it will prevent invalid HTML formatting.
AFAIK this is what is done.
No, that's not right.
The HTML code is catched by this statement:
#set($content = $bentrydoc.display("content", "view", $bentryobj))
You can try editing the Blog.Macros page and
modify it. If you have a
patch for it I'll be happy to apply it.
I'd like to, but I don't know how.
I assume that I can get the XWiki syntax by this statement:
#set($content = $bentrydoc.display("content", "edit", $bentryobj))
But I don't know how to render this to HTML.
AFAICS the syntax is retrieved by display() and the content is
rendered below with $bentrydoc.getRenderedContent($content)
-Vincent