mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
Decode domain record data and comment from HTML entity to text
This commit is contained in:
parent
13ff4df9f9
commit
b534eadf19
@ -76,13 +76,17 @@ function getTableData(table) {
|
||||
record["record_type"] = r[1].trim();
|
||||
record["record_status"] = r[2].trim();
|
||||
record["record_ttl"] = r[3].trim();
|
||||
record["record_data"] = r[4].trim();
|
||||
record["record_comment"] = r[5].trim();
|
||||
record["record_data"] = convertHTMLEntityToText(r[4].trim());
|
||||
record["record_comment"] = convertHTMLEntityToText(r[5].trim());
|
||||
records.push(record);
|
||||
});
|
||||
return records
|
||||
}
|
||||
|
||||
function convertHTMLEntityToText(htmlEntity) {
|
||||
return $('<textarea />').html(htmlEntity).text();
|
||||
}
|
||||
|
||||
function saveRow(oTable, nRow) {
|
||||
|
||||
var status = 'Disabled';
|
||||
|
Loading…
Reference in New Issue
Block a user