Fix #308 by passing clipboard content through self.htmlEntities