I am using Text Edit to write the code, saving as text, changing the extension to .html and opening it with google chrome. It looks the same in Safari. Here is what the page looks like:
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf290 {\fonttbl\f0\froman\fcharset0 Times-Roman;}...