I'm seeking help from those can help me out with this. I'm migrating from my current MySQL database to drupal's MySQL. However, in my current mysql db it contains codes like <br>
, &
, <p>
and etc which are not a XHTML way of coding. Because currently I'm designing the new site which need to be a "Valid XHTML 1.0 Strict". I couldn't just import the improper code to the new XHTML 1.0 Strict's website as it wouldn't be XHTML Strict anymore.
If I'm not mistaken, I've to use the str_replace()
function to do the replacing but I don't know where should I insert it to.
I guess should be around this area around line 759.
/**
* Get one row from the CSV file and return it as an array of
* columns/fields.
*/
function _node_import_csv_get_row($filepath, $reset = FALSE) {
static $handle;
$size = variable_get('node_import_csv_size', 10000);
$separator = variable_get('node_import_csv_separator', ',');
if ($filepath == '') {
unset($handle);
return FALSE;
}
if (!isset($handle) || $reset) {
if (isset($handle)) {
fclose($handle);
}
$handle = fopen($filepath, 'r');
}
return fgetcsv($handle, $size, $separator);
}
I hope I can get the code clean up using the node_import module so I won't need to manually replacing the codes by hands.
Can some developers