Details
-
New Feature
-
Resolution: Unresolved
-
Major
-
None
-
7.3
-
None
-
Unknown
-
Description
For cases like the one described in issue XWIKI-9798 , it would be ideal to have an escape tool that would prepare a string for being safely used as a wiki macro parameter (escaping all types of quotes, escaping the escape character, etc)
One special case (because it's very frequent) is when the parameter values are document / space names: since no characters are forbidden in the document / space names, and since there are a lot of macros that are using document names / fullnames as parameters, it would be useful to have a standard method to handle that, instead of each developer handling it with regular expressions.
Note that this tool is directed to scripting users (developers), not to regular users that only create content (even if using the wiki syntax). Content creators will use hardcoded parameter values and so they should handle the escaping manually.
Attachments
Issue Links
- is related to
-
XWIKI-9798 Creating an FAQ entry with a double quote in the name causes the document to display some code
- Closed
-
XWIKI-11979 Add $services.rendering.escape method for escaping XWiki syntax
- Closed