diff options
Diffstat (limited to 'languages')
-rw-r--r-- | languages/Language.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/languages/Language.php b/languages/Language.php index bb9abf16..0fcd2785 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -3495,6 +3495,9 @@ class Language { /** * Get the RFC 3066 code for this language object * + * NOTE: The return value of this function is NOT HTML-safe and must be escaped with + * htmlspecialchars() or similar + * * @return string */ public function getCode() { @@ -3504,6 +3507,10 @@ class Language { /** * Get the code in Bcp47 format which we can use * inside of html lang="" tags. + * + * NOTE: The return value of this function is NOT HTML-safe and must be escaped with + * htmlspecialchars() or similar. + * * @since 1.19 * @return string */ |