Restore escaped standalone ampersands in translations (#15373)

GitOrigin-RevId: 8f505ea4906d9adfddfd72b7609c0c3e465f6b56
This commit is contained in:
Alf Eaton
2023-10-24 08:03:18 +00:00
committed by Copybot
parent e86ef1139e
commit 0124712cd2
11 changed files with 26 additions and 24 deletions
@@ -38,6 +38,8 @@ function sanitize(input) {
})
// Restore the escaping again.
.replaceAll(/&lt;([/]?[0-9])&gt;/g, '<$1>')
// Restore escaped standalone ampersands
.replaceAll(/ &amp; /g, ' & ')
)
}