是否有可能逃脱并保持非标准| 字符中的字符在表格中的模板Wiki标记中的URL?
{| class="wikitable"
|-
! Test in Table
|-
| [http://example.org/{var1}|{var2}|{var3} Example]
|}
Run Code Online (Sandbox Code Playgroud)
应该在表格单元格中呈现这样的内容
[http://example.org/1|2|3 Example]
Run Code Online (Sandbox Code Playgroud)
并链接到
http://example.org/1|2|3
Run Code Online (Sandbox Code Playgroud)
使用垂直条,不像这样编码
http://example.org/1%7C2%7C3
Run Code Online (Sandbox Code Playgroud)
第三方网站在URL中需要«|»,我会修复服务器端的URL处理,但现在不在我手中.有关解决方法的任何帮助?
我试过这些:
[http://example.org/1|2|3 Example] doesn't work within a table
[http://example.org/{var1}|{var2}|{var3} Example] works in tables
Run Code Online (Sandbox Code Playgroud)
但是两者都创建了有效的标准URL,其中垂直条正确地URL编码为%7C,如上所述,我想阻止它.