--- sites/all/modules/wordfilter/wordfilter.module.orig 2008-10-13 14:58:25.000000000 +0530 +++ sites/all/modules/wordfilter/wordfilter.module 2008-10-13 14:59:53.000000000 +0530 @@ -322,7 +322,7 @@ function wordfilter_filter($op, $delta = } } -function wordfilter_filter_process($text) { +function wordfilter_filter_process($text, $embedded = FALSE) { $text = ' '. $text .' '; $list = _wordfilter_list(); $utf8 = variable_get('wordfilter_use_utf8_flag', FALSE); @@ -331,7 +331,7 @@ function wordfilter_filter_process($text if (!empty($word->words)) { $replacement = ($word->replacement) ? $word->replacement : variable_get('wordfilter_default_replacement', '[filtered word]'); - if ($word->standalone) { + if (!$embedded && $word->standalone) { $text = preg_replace("/(\W)". preg_quote($word->words, '/') ."(\W)/i". ($utf8 ? 'u' : ''), "$1". $replacement ."$2", $text); } else {