Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange symbol shows up on website (L SEP)?

I noticed on my website, http://www.cscc.org.sg/, there's this odd symbol that shows up.

enter image description here

It says L SEP. In the HTML Code, it display the same thing.

enter image description here

Can someone shows me how to remove them?

like image 948
BigRedDog Avatar asked Jan 09 '17 19:01

BigRedDog


People also ask

What does the symbol L Sep mean?

We have Macintosh Computers, and are running Office 365. On some MS Word documents we are all of the sudden seeing a box with "L SEP" in it. Below is an example. This is a document that a user has been using for months, or longer.

What is the LSEP character?

That character is U+2028 Line Separator, which is a kind of newline character. Think of it as the Unicode equivalent of HTML's <br> .


Video Answer


2 Answers

That character is U+2028 or HTML entity code &#8232; which is a kind of newline character. It's not actually supposed to be displayed. I'm guessing that either your server side scripts failed to translate it into a new line or you are using a font that displays it.

But, since we know the HTML and UNICODE vales for the character, we can add a few lines of jQuery that should get rid of the character. Right now, I'm just replacing it with an empty space in the code below. Just add this:

$(document).ready(function() {     $("body").children().each(function() {         $(this).html($(this).html().replace(/&#8232;/g," "));     }); }); 

This should work, though please note that I have not tested this and may not work as none of my browsers will display the character.

But if it doesn't, you can always try pasting your text block onto http://www.nousphere.net/cleanspecial.php which will remove any special characters.

like image 86
thatguy Avatar answered Sep 21 '22 18:09

thatguy


Some fonts render LS as L SEP. Such a glyph is designed for unformatted presentations of the character, such as when viewing the raw characters of a file in a binary editor. In a formatted presentation, actual line spacing should be displayed instead of the glyph.

The problem is that neither the web server nor web browser are interpreting the LS as a newline. The web server could detect the LS and replace it with <br>. Such a feature would fit well with a web server that dynamically generates HTML anyway, but would add overhead and complexity to a web server that serves file contents without modification.

If a LS makes its way to the web browser, the web browser doesn't interpret it as formatting. Page formatting is based only on HTML tags. For example, LF and CR just affect formatting of the HTML source code, not the web page's formatting (except in <pre> sections). The browser could in principle interpret LS and PS (paragraph separator) as <br> and <p>, but the HTML standard doesn't tell browsers to do that. (It seems to me like it would be a good addition.)

To replace the raw LS character with the line separation that the content creator likely intended, you'll need to replace the LS characters with HTML markup such as <br>.

like image 25
Edward Brey Avatar answered Sep 18 '22 18:09

Edward Brey