What potential issue arises when using HTML tags in the text output for file download in PHP?

When using HTML tags in the text output for file download in PHP, the potential issue is that the HTML tags may be rendered as text in the downloaded file instead of being interpreted as markup. To solve this issue, you can use the PHP `header()` function to set the content type to `text/plain` before outputting the text.

<?php
// Set the content type to text/plain
header('Content-Type: text/plain');

// Output the text with HTML tags
echo '<h1>Hello, World!</h1>';
?>