Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
How to reproduce:
1. Open the attached project “ReproXhtmlProj.zip“
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Copy the full path of the “Assets/Resources/history_notes_template.xhtml“ file
4. Select the “Manager“ GameObject in the Hierarchy and paste the full path in the “File Location“ text field of the “File Manager“ Script Component
5. Build and Run (File > Build And Run)
6. Press “2“ in Player
Expected result: The XHTML headers are logged in the Console and are the same as in the source file
Actual result: The XHTML headers are rewritten and logged in the Console