Update selection with text instead of potentially unsafe html