[!NewsListing? &tpl=`NewsListingTemplate` &startID=`2` &truncText=`Lea más...` &summarize=`99`!]
Is there anything that I can do to fix this? Do I need to file a bug report? If I need to come up with a fix myself, can someone at least point me to the right file?
$tempSnippetParams = split($splitter, $tempSnippetParams);
[!NewsListing? &tpl=`NewsListingTemplate` &startID=`2` &truncText=`Lea más...`!]
$tempSnippetParams = array(6) {
[0]=>
string(1) " "
[1]=>
string(26) "tpl=`NewsListingTemplate` "
[2]=>
string(12) "startID=`2` "
[3]=>
string(16) "truncText=`Lea m"
[4]=>
string(13) "aacute;s...` "
[5]=>
string(13) "summarize=`1`"
}
I looked in document.parser.class.inc.php and found the source of the problem. It is on line 763 in the evalSnippets function.
$tempSnippetParams = split($splitter, $tempSnippetParams);
$tempSnippetParams = html_entity_decode($tempSnippetParams, ENT_NOQUOTES, $this->config['etomite_charset']);
Try adding this line right before the line above with the split() call:That did the trick. Thanks!
$tempSnippetParams = html_entity_decode($tempSnippetParams, ENT_NOQUOTES, $this->config['etomite_charset']);
If that doesn’t work, try simply turning off the rich-text editor for a moment and pasting the code directly into the content source. This will prevent the RTE from converting the special characters to HTML entities when being saved to the DB.Doh! I didn’t even think about it being stored that way because of the RTE. I was thinking that it got converted to html entity during parsing.
This has always been a known limitation of snippet parameter values; you cannot use ? & or =.
The problem has been addressed for 0.9.7 release.
My bad 
$modx->runSnippet('snippetName', array('param1'=>'value1', 'param2'=>'value2'));
return '';