mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Merge pull request #1159 from AdvanticGmbH/html_entity_domain_fix
Decode domain record data and comment from HTML entity to text
This commit is contained in:
commit
5040cf5282
@ -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