开发者

MODX: Snippet strips and hangs string when parsing the vars

开发者 https://www.devze.com 2022-12-27 09:01 出处:网络
i have a snippet call like this: [!mysnippet?&content=`[*content*]` !] What happen is that, if i send some html like this:

i have a snippet call like this:

[!mysnippet?&content=`[*content*]` !]

What happen is that, if i send some html like this:

[!mysnippet?&content=`<p color='red'>Yea开发者_如何学编程h</p>` !]

it will return this:

<p colo

the [test only] snippet code (mysnippet) is:

<?php
return $content;
?>

Why is this happening? My actual snippet is converting html to pdf, so i really need this.

Thank you all ;D

EDIT: I'm using Modx Evo 1.0.2


MODx Evolution has a limitation whereby you can't use "=" (equals signs) in Snippet parameter values. Best solution is to place the content in a chunk or TV and then call it. This is not an issue in MODx Revolution.

0

精彩评论

暂无评论...
验证码 换一张
取 消