So, techincal support provided the following answer:
In the meantime there is a workaround for you to fix the report by changing the sources. That means you can open the compare.html file and search for all "DataSource" lines. For example in line 1164 and all other lines (I have counted 6...)
Escape the inner quotes:
"DataSource1": " .AOA{:,\"\"}",
"DataSource2": " .AOA{:,\"\"}",
Or use single-quoted JS strings so the inner double-quotes don't need escaping:
"DataSource1": ' .AOA{:,""}',
"DataSource2": ' .AOA{:,""}',
As a result i created the following script to replace programatically the affected strings with the output highlighted by the support team
currentfolder=pwd;
%% replace report_name with the name of the html file created by the simulink.sdi.report command
[fidi,messagi]=fopen(append(currentfolder,'\sdireports\',report_name, '1.html'),'rt');
%% new file will be created to not modify and lose the original input
[fido,message]=fopen(append(currentfolder,'\sdireports\',report_name, '_final.html'),'wt') ;
%% the section below is useful for debuggin (e.g working in a folder with no writing rights)
if fido < 0
error('Failed to open myfile because: %s', message);
end
if fidi < 0
error('Failed to open myfile because: %s', messagi);
end
while~feof(fidi)
l=fgetl(fidi); % read line
if strfind(l,'DataSource1": " .')
% modify line here
l_temp=split(l,"\");
l2=strcat(l_temp(1,1),'\"\"}",');
l=string(l2);
end
if strfind(l,'DataSource2": " .')
% modify line here
l_temp=split(l,"\");
l2=strcat(l_temp(1,1),'\"\"}",');
l=string(l2);
end
fprintf(fido,'%s\n',string(l)); %% copy every line in the new file, including the modified ones
end
fidi=fclose(fidi);
fido=fclose(fido);