奇怪的符号出现在网站上(L SEP)? [英] Strange symbol shows up on website (L SEP)?

查看:2294
本文介绍了奇怪的符号出现在网站上(L SEP)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上注意到,



它L SEP说。在HTML代码中,它显示相同的内容。




解决方案

该字符是U + 2028或HTML实体代码
 这是一种换行符。它其实不应该被显示。我猜测你的服务器端脚本无法翻译成新行,或者你正在使用显示它的字体。

但是,由于我们知道该角色的HTML和UNICODE vales,因此我们可以添加几行jQuery,以消除该角色。现在我只是用下面的代码中的空白空间替换它。只需添加此代码

  $(document).ready(function(){
$(body)。 children()。each(function(){
$(this).html($(this).html()。replace(/
 / g,));
});
});

这应该可行,但请注意,我没有测试过这个功能,可能无法正常工作浏览器将显示该字符。



但如果不行,您可以尝试将文本块粘贴到 http://www.nousphere.net/cleanspecial.php ,它将删除任何特殊字符。希望有所帮助。让我知道如果它不起作用,我会尝试别的。

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

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

Can someone shows me how to remove them?

解决方案

That character is U+2028 or HTML entity code 
 which is a kind of newline character. Its not actually supposed to be displayed. I'm guessing that either your server side scripts failed to translate 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 code

$(document).ready(function() {
    $("body").children().each(function() {
        $(this).html($(this).html().replace(/
/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. Hope that helps. Let me know if it doesn't work and i will try something else.

这篇关于奇怪的符号出现在网站上(L SEP)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆