diff --git a/installer/renderer.js b/installer/renderer.js index 13b2437..d333438 100644 --- a/installer/renderer.js +++ b/installer/renderer.js @@ -208,7 +208,7 @@ function renderAgreementWithKinds(KINDS) { '

' + tt('agreement.intro') + '

' + '
' + KINDS.map(function (k, i) { - return '' + return '' }).join('') + '
' + '
' + tt('agreement.loading') + '
' + @@ -960,6 +960,12 @@ function renderStep5() { }) } +function escapeHtml(s) { + return String(s).replace(/[&<>"']/g, function (c) { + return c === '&' ? '&' : c === '<' ? '<' : c === '>' ? '>' : c === '"' ? '"' : ''' + }) +} + // 시작 진입점: 사전을 먼저 받아서 정적 텍스트 갱신 후 첫 페이지 렌더. ;(async function () { try {