I am setting up my first site on my OSX, this is just for use on my machine so I can trial html fragments. When I open my local site and select any HTML file, it comes back as text. My test HTML file is as follows:

<html>
<head>
</head>
<body>
<a>Hello World</a>
</body>
</html>

It is displayed as the actual text rather than the interpretedx text. The actual HTML returned is:

2 Answers
2

Your text editor (TextEdit? "Cocoa HTML Writer" seems generic enough that it might be something else) figured that you wanted to modify and HTML file's content without seeing the underlying code. Thus, all of the HTML that you entered, it escaped, thinking that was the intended content.

Edit it with something that's not trying to hide the underlying HTML from you.