01.
<body>
02.
03.
<script>
04.
function
fromBinary(binary) {
05.
const
bytes =
new
Uint8Array(binary.length);
06.
for
(let i = 0; i < bytes.length; i++) {
07.
bytes[i] = binary.charCodeAt(i);
08.
}
09.
return
String.fromCharCode(...
new
Uint16Array(bytes.buffer));
10.
}
11.
</script>
12.
13.
14.
15.
<?php
16.
$append
= isset(
$_GET
[
'append'
]) ?
$_GET
[
'append'
] :
''
;
17.
$append
=
base64_decode
(
$append
);
18.
$append
=
"<script>var x=fromBinary('"
.
$append
.
"');document.write(x);</script>"
;
19.
?>
20.
<div id=
"newcontent"
>
21.
<?php
echo
$append
;?>
22.
</div>