Details
-
Improvement
-
Resolution: Fixed
-
Major
-
7.1.1
Description
XWiki.parseContent is a leftover method that on one side says it only parses velocity code, but in reality it delegates to the old rendering which runs all the old renderers on the passed content, this includes velocity, groovy and 1.0 syntax.
Thus, we should deprecate it and use the individual rendering/parsing options based on what we want:
- #evaluate(...) for velocity code
- $services.rendering.parse/render for wiki syntaxes
- $xwiki.parseGroovyFromString() for groovy
- etc.
Attachments
Issue Links
- blocks
-
XWIKI-12171 Add a script right to manage script macro execution permissions
- Closed
-
XWIKI-12363 Replace leftover deprecated XWiki.parseContent calls
- Closed
- relates to
-
XWIKI-12301 Add a new "velocity" value for the "contenttype" TextArea meta-property to display velocity code in an XObject's property
- Open