FreeFormatter: Escaping R Code for HTML

My demo of spreading and gathering data, like all my blog posts, is written in HTML. To prevent < and > symbols in my code messing this up, I had to “escape” them by rewriting them as &lt; and &gt;. This is more of a pain in R than in many other languages, because of the assignment symbol, <-. So it’s good that there’s an online tool, FreeFormatter’s HTML Escape / Unescape page, that does this automatically. In fact, a Google search shows other sites that appear to do the same job, but FreeFormatter’s is first. So that’s what I’m using.

Leave a Reply

Your email address will not be published. Required fields are marked *