I still see “The uploaded file is not a valid CSV file” even after adding that and modifying it to allow tags (amongst others) as below:
add_filter( 'preprocess_comment', 'wpse_340526_preprocess_comment' );
function wpse_340526_preprocess_comment( $commentdata ) {
if( 'wpse_response' === $commentdata['comment_type'] ){
global $allowedtags;
$allowedtags['pre'] = array('class'=>array());
$allowedtags['h2'] = array();
$allowedtags['h3'] = array();
$allowedtags['h4'] = array();
$allowedtags['h5'] = array();
$allowedtags['h6'] = array();
$allowedtags['ul'] = array();
$allowedtags['ol'] = array();
$allowedtags['li'] = array();
$allowedtags['a'] = array();
$allowedtags['b'] = array();
$allowedtags['br'] = array();
}
return $commentdata;
}
Any further ideas?
Thanks for providing additional information!
Unfortunately, it is not possible to import HTML because the import reviews functionality expects plain text reviews.
We haven’t heard from you for more than two weeks. For this reason, I’ll assume that either you are not interested in this question/problem anymore or it has been resolved. If you still require any help, please start a new forum topic.