Bookmarklet to Remove Zero-width Spaces () from SharePoint Pages
When editing pages in SharePoint, the rich text editor inserts zero-width spaces to assist with text selection. Unfortunately it does not always remove these when a page is saved. These characters appear as
​ in Chrome’s dev tools, for example. These “leftovers” can cause spacing issues for content authors, so we created a bookmarklet to remove these when editing a page. The instructions for this may vary based on your browser, but the general idea is the same:
- Add a new bookmark to your bookmarks bar (in Chrome, right-click and select “Add Page”)
- Give it a descriptive name such as “Remove ​”
- For the URL, use
To use this with maximum effectiveness, click this button right before you save changes to a page every time you edit a page.