DEV Community

Loftie Ellis
Loftie Ellis

Posted on • Originally published at blog.pagewatch.dev

1 1

What are those LSEP characters on certain pages?

If you browse the web on windows, you might have from time to time see characters like these:

That character is actually the Unicode U+2028 Line Separator, and for some reason Chrome will display it as a visible block.

How did it get there?

Most likely the developer has an IDE that accidentally placed those characters in place of a new line, or there is some server side script that incorrectly processed newlines. Either way it is very likely that these go unspotted as they do not show at all on most operating systems or browsers.

See this stackoverflow post for more context.

How to fix?

If this was due to and IDE, you can simply search and replace the code. Go here and copy the text (it might look like just an empty character), and replace those with a blank space.

If the characters ended up in the database you might be able to run a sql query (see the stackoverflow post above) to get rid of them.

Either way it is a good idea to preview your pages in Chrome on windows, or use PageWatch to automatically find these in your site.

Originally published at https://blog.pagewatch.dev/post/what-are-those-lsep-characters-on-certain-pages

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay