That doesn't work for quotes, though. In this case it wouldn't matter, but since reading [this article](http://benv.ca/2012/10/4/you-are-probably-misusing-DOM-text-methods/) I try to stay clear of DOM text methods for escaping.