convenience method to accommodate IE8
no innerHTML for plain text content
Merge pull request #430 from Trott/safe-text-replace

Safe text replace