Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

use textContent instead of innerText, works both on chrome and ff


textContent doesn't preserve newlines correctly. I found a polyfill, so Firefox <45 should work now.


I confirm it does. Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: