Decode domain record data and comment from HTML entity to text

This commit is contained in:
AdvanticGmbH 2022-04-04 14:43:02 +02:00
parent 13ff4df9f9
commit b534eadf19

View File

@ -76,13 +76,17 @@ function getTableData(table) {
record["record_type"] = r[1].trim(); record["record_type"] = r[1].trim();
record["record_status"] = r[2].trim(); record["record_status"] = r[2].trim();
record["record_ttl"] = r[3].trim(); record["record_ttl"] = r[3].trim();
record["record_data"] = r[4].trim(); record["record_data"] = convertHTMLEntityToText(r[4].trim());
record["record_comment"] = r[5].trim(); record["record_comment"] = convertHTMLEntityToText(r[5].trim());
records.push(record); records.push(record);
}); });
return records return records
} }
function convertHTMLEntityToText(htmlEntity) {
return $('<textarea />').html(htmlEntity).text();
}
function saveRow(oTable, nRow) { function saveRow(oTable, nRow) {
var status = 'Disabled'; var status = 'Disabled';