How can PHP code be modified to ensure that HTML tags are not stripped when outputting base64 encoded text?

When outputting base64 encoded text in PHP, HTML tags may be stripped by default. To ensure that HTML tags are not stripped, you can use the `htmlspecialchars_decode()` function to decode the encoded text before outputting it. This will convert any special HTML entities back into their original form, including the HTML tags.

$encodedText = base64_encode('<p>This is some <strong>encoded</strong> text.</p>');
$decodedText = htmlspecialchars_decode(base64_decode($encodedText));

echo $decodedText;