The filemanager is chrooted.
This means DA does it's best to parse things before the command is excuted, but cannot parse things that have not yet been processed.
For this reason, parsing the table in the filemanager is not likely going to be possible.
|$/usr/local/bin/php
<?php
$data = <<<END
|DIRECTORYLIST|
END;
$data = str_replace("class=list", "test", $data);
echo $data;
?>