Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Opening Local HTML files - render HTML (not display as text)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Dysfunction" data-source="post: 935668" data-attributes="member: 51052"><p>I just copied that into textedit and saved it as html... it did the same as you described... so I did a cat -v</p><p></p><p>[code]</p><p>mikeMbp:Desktop mike$ cat -v Untitled.html </p><p><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"></p><p><html></p><p><head></p><p> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></p><p> <meta http-equiv="Content-Style-Type" content="text/css"></p><p> <title></title></p><p> <meta name="Author" content="Mike"></p><p> <meta name="Copyright" content="Mike"></p><p> <meta name="Generator" content="Cocoa HTML Writer"></p><p> <meta name="CocoaVersion" content="1038.11"></p><p> <style type="text/css"></p><p> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Times}</p><p> </style></p><p></head></p><p><body></p><p><p class="p1"><html></p></p><p><p class="p1"><head /></p></p><p><p class="p1"><body>abcd</body></p></p><p><p class="p1"></html></p></p><p></body></p><p></html></p><p>mikeMbp:[/code]</p><p></p><p>So i edited out the cr@p in vi.</p><p></p><p>[code]</p><p>mikeMbp:Desktop mike$ cat -v Untitled.html </p><p></p><p><html></p><p><head></p><p><title></title></p><p></head></p><p><body></p><p>abcd</p><p></body></p><p></html></p><p>[/code]</p><p></p><p>and it works. It's not the mac, it's textedit (which I think sucks anyway) try textwrangler, it's LEAPS and BOUNDS better as an editor.</p><p></p><p>Alternately you can (in textedit) go to Format > Make Plain Text</p><p></p><p></p><p>I hate rich text biased editors.</p></blockquote><p></p>
[QUOTE="Dysfunction, post: 935668, member: 51052"] I just copied that into textedit and saved it as html... it did the same as you described... so I did a cat -v [code] mikeMbp:Desktop mike$ cat -v Untitled.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <title></title> <meta name="Author" content="Mike"> <meta name="Copyright" content="Mike"> <meta name="Generator" content="Cocoa HTML Writer"> <meta name="CocoaVersion" content="1038.11"> <style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Times} </style> </head> <body> <p class="p1"><html></p> <p class="p1"><head /></p> <p class="p1"><body>abcd</body></p> <p class="p1"></html></p> </body> </html> mikeMbp:[/code] So i edited out the cr@p in vi. [code] mikeMbp:Desktop mike$ cat -v Untitled.html <html> <head> <title></title> </head> <body> abcd </body> </html> [/code] and it works. It's not the mac, it's textedit (which I think sucks anyway) try textwrangler, it's LEAPS and BOUNDS better as an editor. Alternately you can (in textedit) go to Format > Make Plain Text I hate rich text biased editors. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Opening Local HTML files - render HTML (not display as text)
Top