Parsing MODX:在解析变量时,代码段会剥离并挂起字符串
我有一个类似这样的代码片段调用:Parsing MODX:在解析变量时,代码段会剥离并挂起字符串,parsing,html-parsing,code-snippets,modx,modx-evolution,Parsing,Html Parsing,Code Snippets,Modx,Modx Evolution,我有一个类似这样的代码片段调用: [!mysnippet?&content=`[*content*]` !] [!mysnippet?&content=`<p color='red'>Yeah</p>` !] 如果我像这样发送一些html: [!mysnippet?&content=`[*content*]` !] [!mysnippet?&content=`<p color='red'>Yeah</p>` !
[!mysnippet?&content=`[*content*]` !]
[!mysnippet?&content=`<p color='red'>Yeah</p>` !]
如果我像这样发送一些html:
[!mysnippet?&content=`[*content*]` !]
[!mysnippet?&content=`<p color='red'>Yeah</p>` !]
[!mysnippet?&content=`耶
`]
它将返回以下内容:
<p colo
MODx Evolution有一个限制,即不能在代码段参数值中使用“=”(等号)。最好的解决方案是将内容放入块或电视中,然后调用它。这不是MODx革命中的问题