Fix bug in text.js stripping html