sorry, added table name $cleanedValues[$field] = $GLOBALS['TYPO3_DB']->quoteStr(strip_tags($value),'tx_ext_tablename' ); and it works. now to remove those slashes when the data is displayed.