Skip to content
Snippets Groups Projects
Commit d48351a0 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #19873: drupal_specialchars -> check_plain

parent a3e9b35a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -952,7 +952,7 @@ function _locale_string_edit($lid) { ...@@ -952,7 +952,7 @@ function _locale_string_edit($lid) {
foreach ($languages['name'] as $key => $lang) { foreach ($languages['name'] as $key => $lang) {
$form .= (strlen($orig) > 40) ? form_textarea($lang, $key, '', 70, 15) : form_textfield($lang, $key, '', 50, 128); $form .= (strlen($orig) > 40) ? form_textarea($lang, $key, '', 70, 15) : form_textfield($lang, $key, '', 50, 128);
} }
$form = form_item(t('Original text'), wordwrap(drupal_specialchars($orig, 0))) . $form; $form = form_item(t('Original text'), wordwrap(check_plain($orig, 0))) . $form;
$form .= form_submit(t('Save translations')); $form .= form_submit(t('Save translations'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment