I do have a weird error, please let me know if it’s "normal" (and how to fix it) or if you have a clue on what I’m doing wrong.
When I generate some string with a
link through parameter for a snippet, the output is truncated after the "e", that is I obtain:
Please let me better explain this with a simple example.
Let’s say this is my page content:
<div>
[!testsnippet?label=`MODX CMS` &link=`http://www.modxcms.com` &sign=` sign <a href="mailto:[email protected]">My Signature</a>`!]
</div>
And let’s say this is my
testsnippet snippet:
<?php
$out = "<a href='".$link."' target='_new'>".$label."</a>";
$out .= "<br />";
$out .= "<a href='http://www.google.com'>google</a>";
$out .= "<br />";
$out .= $sign;
echo $out;
?>
Ok, nothing special. Sure? This is the output I obtain when loading the page:
<div>
<a href='http://www.modxcms.com' target='_new'>MODX CMS</a><br /><a href='http://www.google.com'>google</a><br /> sign <a hre
</div>
That is, everything’s ok but the last piece, which is just truncated after the
e of
href.
Thanks for any help to fix this behaviour.