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

some cleanup might be good, eg when you select everything using cmd+a, then delete, some browser leave a <br/> in the content.

I didn't like forced sanitization in wysihtml5, so we added an optional method .cleanHtml - you can just use the normal jquery html method to get the non sanitized contents, or call cleanHtml() to get trailing empty divs, <br/> and whitespace removed



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

Search: