Hi,
I'm using Apex 5.1.4.00.08 and database 11g.
I have a table in rich text editor as below.

source code for the table is
begin
:P298_RTE := '
<style type="text/css">table.tbl.tbl,
.tbl.tbl.tbl th,
.tbl.tbl.tbl td {
border: 1px solid blue;
border-collapse: collapse;
}
td {background-color: aliceblue}
</style>
<h2>Add a border to a table:</h2>
<table class="tbl">
\<tbody>
\<tr>
\<th >Firstname\</th>\<th>Lastname\</th>\<th> Age \</th>
\</tr>
\<tr>
\<td >Peter\</td>
\<td>Griffin\</td>
\<td> 40 \</td>
\</tr>
\<tr>
\<td >Lois\</td>
\<td >Griffin\</td>
\<td> 45 \</td>
\</tr>
\</tbody>
</table>
';
end;
and the rich text editor has the javacode :
function (config) {
config.extraAllowedContent = 'style';
config.extraAllowedContent = 'style;\*{border\*}';
return config;
}
When I mail it using below code, I'm not getting the table with colored border. Instead i'm getting
in the mail.
BEGIN
apex_mail.send(
p\_to =>['KJC@gmail.com](mailto:'KJC@gmail.com)',
p\_cc => ' ',
p\_from => ['it@gmail.com](mailto:'it@gmail.com)',
p\_body => ' ',
p\_body\_html => :P298\_RTE ,
p\_subj => 'Testing on the table style in mailing'
);
APEX\_MAIL.PUSH\_QUEUE;
COMMIT;
exception
when others then
APEX_ERROR.ADD_ERROR(
p_message => 'An error had occured. ' ||SQLERRM ,
p_additional_info => 'Mailing error',
p_display_location => apex_error.c_inline_in_notification);
END;
Please help. my previous thread Rich text editor formatting table in Apex 5.1.4 regarding this is here.
Thanks,
KJ