Skip to content
Snippets Groups Projects
Commit 34544d4d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Unrolled patch #29103: always encode apostrophes.

parent 8f32c39d
Branches
Tags
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
......@@ -649,7 +649,7 @@ function t($string, $args = 0) {
* Encode special characters in a plain-text string for display as HTML.
*/
function check_plain($text) {
return htmlspecialchars($text);
return htmlspecialchars($text, ENT_QUOTES);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment