MODX: Snippet strips and hangs string when parsing the vars.

Posted by CuSS on Stack Overflow See other posts from Stack Overflow or by CuSS
Published on 2010-04-14T11:25:18Z Indexed on 2010/04/17 12:23 UTC
Read the original article Hit count: 383

Hey all

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'>Yeah</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

© Stack Overflow or respective owner

Related posts about modx

Related posts about modx-evolution