add to changelog, mark t.html as deprecated

This commit is contained in:
Martin Raifer
2021-11-30 10:33:55 +01:00
parent 9f3f8e1366
commit 4bef27db82
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -349,6 +349,10 @@ export function coreLocalizer() {
};
// Returns the localized text wrapped in an HTML element encoding the locale info
/**
* @deprecated This method is considered deprecated. Instead, use the direct DOM manipulating
* method `t.append`.
*/
localizer.t.html = function(stringId, replacements, locale) {
// replacement string might be html unsafe, so we need to escape it except if it is explicitly marked as html code
replacements = Object.assign({}, replacements);