strip_tags

This commit is contained in:
awesomeuser 2023-08-04 17:47:07 +00:00
parent 19c2339717
commit 8d22f146dd

View file

@ -210,11 +210,11 @@
if ($myfile) { if ($myfile) {
$index = 0; $index = 0;
while (($line = fgets($myfile)) !== false) { while (($line = fgets($myfile)) !== false) {
echo "<div class='post'><h2>" . $line . "</h2>"; echo "<div class='post'><h2>" . strip_tags($line) . "</h2>";
echo "<i>" . fgets($myfile) . "</i>"; echo "<i>" . strip_tags(fgets($myfile)) . "</i>";
echo "<canvas id='c" . $index . "' style='width: 100%;' width='128' height='64'></canvas></div>"; echo "<canvas id='c" . $index . "' style='width: 100%;' width='128' height='64'></canvas></div>";
echo "<script>loadImageBits('c" . $index . "', '" . strip_tags(fgets($myfile)) . "');</script>"; echo "<script>loadImageBits('c" . $index . "', '" . substr(strip_tags(fgets($myfile)), 0, 8192) . "');</script>";
$index++; $index++;
} }