$string = $input; $output = str_replace(array('these', 'words', 'will', 'be', 'stripped'), '' , $string); return $output;
This question has been answered by BobRay. See the first response.
[[*content:stripWords=`these,words,will,be,stripped`]]
/* stripWords snippet */ $words = array_map('trim', explode(',', $options)); return str_replace($words, '', $input);
these,words,will,be,stripped
/* stripWords snippet */ $words = $modx->getChunk('wordsToStrip'); $words = array_map('trim', explode(',', $words)); return str_replace($words, '', $input);
return str_replace($words, '[expletive deleted]', $input);