I think when the PRINT #8 was designed it wasn't ever conceived that it might be used to create a file with the HTML code and a string "<anytags>" where anytag that is not a valid tag is simply ignored.
If your purpose is to create HTML file, a workaround will be to add a space before the first '<'. Browser will ignore the space and the file can still be displayed properly.