We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23214
    • 36 Posts
    Hello,

    I'm having trouble with tag parsing in MODX (2.2.7-pl).

    Here's an example snippet call which is made via a chunk (simplified):

    [[!FileLister?
    	&path=`/home/path_to_folder/Oranges & Lemons`
    	&requireAuthDownload=`1`
    	&fileTpl=`flfile`
    ]]


    MODX appears to choke on the & character and outputs the snippet parameters directly into the HTML:
    ...
    <table>
    [[!FileLister?
    	&path=`/home/path_to_folder/Oranges
    </div>
    ...


    Is there any way to escape the '&' character?

    FYI, the original FileLister call is:
    [[!FileLister?
    	&path=`[[+path]]/`
    	&allowDownloadGroups=`Potential Investors`
    	&requireAuthDownload=`1`
    	&fileTpl=`flfile`
    	&directoryTpl=``
    ]]


    This is used to view the files within a folder when using the FileLister addon. It all works fine, providing that the [[+path]] placeholder doesn't contain an ampersand.

    Any help is much appreciated!

    thanks