找出本地化欢迎消息里的 bug

来自 国际化
Node 24 进阶 4分钟 找出 1处问题

找出这条本地化欢迎消息破坏的安全边界。

JavaScript
function showWelcome(container, messages, customerName) {
  const welcome = messages.welcome.replace(
    "{customerName}",
    customerName,
  );
  container.innerHTML = welcome;
}
在试验场中打开
报告错误