views:

208

answers:

4

What does the character code (HTML) ​? I found it in one of my jQuery scripts and wondered what it was..

Thanks.

Edit:

Here is the script it was in (it was added to the end, found it in Firebug)

{literal}
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript">
var $jnyh = jQuery.noConflict();


$jnyh(function() {
    $jnyh("#title-nyh").click(function() {
      $jnyh(".show-hide-nyh").slideDown("slow");
    }, function() {        
      if(!$jnyh(this).data('pinned'))
        $jnyh(".show-hide-nyh").slideUp("slow");
    });
    $jnyh("#title-nyh").click(function() {
    $jnyh(this).parent().toggleClass("title-btm-brdr");
       $jnyh(this).toggleClass("chev-up-result");
      var pin = $jnyh(this).data('pinned');
      $jnyh(this).data('pinned', !pin);
      if(pin) $jnyh(".show-hide-nyh").slideUp("slow");      
    });
});​&#8203;
</script>
{/literal}
+2  A: 

It's the Unicode Character 'ZERO WIDTH SPACE' (U+200B).

this character is intended for line break control; it has no width, but its presence between two characters does not prevent increased letter spacing in justification


Update: as per the given code sample, the entity is entirely superfluous in this context. It must be inserted by some accident.

BalusC
Thanks. Strange how it ended up in my jQuery.
Kyle Sevenoaks
@Kyle - What is it between?
Martin Smith
You're welcome. You might just read the function what it is doing with this character :)
BalusC
I was just wondering as I'm having some issues with scripts in my page, so wondered exactly what this was and if it would interfere with other functions.
Kyle Sevenoaks
A: 

zero width space

k_b
+1  A: 

I usually don't do this, but just this once: STFW. Or if you know how character entities and Unicode work, this is even better.

There's a certain limit to my ability to tolerate peoples' reluctancy to use Google.

Matti Virkkunen
Yet *you* want reputation for something *Google* did?
strager
@strager: Anyone who thinks I'm wrong in not spoonfeeding this person is free to vote me down.
Matti Virkkunen
ACtually, I love Google, I *did* use it, but to no avail, hence, I asked here. Thnaks for the unicoe link though, didn't know to search for that.
Kyle Sevenoaks
Cool, this topic is already the 3rd hit here for your 1st query.
BalusC
@Kyle: I got this as the first hit for "html 8203": http://www.robinlionheart.com/stds/html4/spchars
Matti Virkkunen
@Matti: Hmm, I just found out my Google search was set to search only in Norway.. Damn browser. Thanks for the links.
Kyle Sevenoaks
@Kyle: Don't we all just love that "useful feature" of Google... they keep forgetting my settings as well. Sometimes I feel like they're actively trying to hinder people whose IP addresses happen to be within a small country.
Matti Virkkunen
Yeah, it's a pain in the ass. Could've saved myself a downvote and a lot of time setting it back to "the whole net"..
Kyle Sevenoaks
A: 

ZERO WIDTH SPACE.

I've used it as content for "empty" table cells. No idea what it's doing in a , though.

dan04