[Web] Add html2text converter; Show quarantaine html elements as text, do not escape html

This commit is contained in:
andre.peters
2018-01-18 10:09:30 +01:00
parent 9ba0786fbf
commit 79cb929911
78 changed files with 28586 additions and 1247 deletions

View File

@@ -60,8 +60,9 @@ jQuery(function($){
$( "#qid_error" ).text(data.error);
$( "#qid_error" ).show();
}
$('#qid_detail_subj').text(escapeHtml(data.subject));
$('#qid_detail_text').text(escapeHtml(data.text_plain));
$('#qid_detail_subj').text(data.subject);
$('#qid_detail_text').text(data.text_plain);
$('#qid_detail_text_from_html').text(data.text_html);
if (typeof data.attachments !== 'undefined') {
$( "#qid_detail_atts" ).text('');
$.each(data.attachments, function( index, value ) {
@@ -80,5 +81,4 @@ jQuery(function($){
}
// Initial table drawings
draw_quarantaine_table();
});