Skip to content

Commit

Permalink
fix: resolve problem with missing escaping of html
Browse files Browse the repository at this point in the history
  • Loading branch information
modelrailroader committed Jun 4, 2024
1 parent df8e6ca commit 0a0eaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/admin/assets/src/api/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const fetchDeleteTranslation = async (csrf, formId, inputId, lang, elemen
pushNotification(result.success);
document.getElementById('item_' + element.getAttribute('data-pmf-lang')).remove();
const option = document.createElement('option');
option.innerHTML = element.getAttribute('data-pmf-langname');
option.innerText = element.getAttribute('data-pmf-langname');
document.getElementById('languageSelect').appendChild(option);
} else {
console.error(result.error);
Expand Down

0 comments on commit 0a0eaf3

Please sign in to comment.