The issue with the snippet output is still there - I have tracked that down - around line 860 we have:
foreach ($modRegExArray as $mReg){
$searchString = preg_replace($mReg, '', $content);
}
We should be working on the string contained within $content - not $searchString.
I was playing around a bit and came up with a regex to clean snippets & chunks in results in one go. Not a regex wizard, but this seems to work in my test case:
<?php
$content .= '<p>Snippets: [[snippets]]</p>';
$content .= '<p>Snippets - nocache: [!noCacheSnippets!]</p>';
$content .= '<p>Links: [~links~]</p>';
$content .= '<p>Settings: [(settings)]</p>';
$content .= '<p>Chunks: {{chunks}}</p>';
$content .= '<p>Attributes: [*attributes*]</p>';
$killTheseStrings = '~(\[[\[\!\*\(\~]|\{\{)(.*?)(\}\}|[\~\)\*\!\]]\])~';
$thisStringInstead = '';
$content = preg_replace($killTheseStrings, $thisStringInstead, $content);
echo $content;
?>
HTML formatted characters haven’t appeared since last post.