<!DOCTYPE html>
<html>
<head>
<title>Octal to Text Converter</title>
</head>
<body>
<h1>Octal to Text Converter</h1>
<textarea id="octal-input" placeholder="Enter octal code"></textarea>
<button onclick="convertOctalToText()">Convert</button>
<p id="text-output"></p>
<script>
function convertOctalToText() {
const octalInput = document.getElementById('octal-input').value;
const textOutput = document.getElementById('text-output');
const octalArray = octalInput.split(' ');
let text = '';
for (let i = 0; i < octalArray.length; i++) {
text += String.fromCharCode(parseInt(octalArray[i], 8));
}
textOutput.innerText = text;
}
</script>
</body>
</html>