I am trying to make a generator to output user data from my gaming website and I've never really looked into the conversion to images in PHP, however I've managed to get the basics of it working now from other questions on this site and elsewhere, anyway I was wondering whether it is possible to make my PHP file that generates the image, parse HTML tags in its' output? Here is my script:
<?php
$username = $_GET['username'];
$guild = $_GET['guild'];
$create = "Username: " . $username . " Guild: " . $guild . "";
$im = imagecreate(300, 30);
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 255);
imagestring($im, 5, 0, 0, $create, $textcolor);
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
In my $create variable, I wish to use HTML tags but they aren't parsed as html and it outputs the tags in plain text.
\nin your string.