Skip to content

[CODE REVIEW] While intercepting code, I found this uglyness: "<<&nbsp;"

MXXIV··1 votes·1,273 views

Last year, I had developped a script that automatically fetched my updates and allowed me to reply on them without leaving the page. I'm now working on the same thing and while looking over the page source, I came accross a really ugly thing: "

2 Comments

Hyrum Graff1 votes

What's the < < do? I like using &nbsp to multiquote without text in between, like so:

{quoted}

Last year, I had developped a script that automatically fetched my updates and allowed me to reply on them without leaving the page.

 

{quoted}

I'm now working on the same thing and while looking over the page source, I came accross a really ugly thing: "

MXXIV1 votes

&nbsp; is an entity. In HTML, some characters can be represented by special codes - for example characters with diacritics, or reserved HTML characters. Reserved HTMl characters are, among some more, these: &, >, <

So if you write HTML, you should not be using these directly, instead, you use their entities: &amp;, &gt, &lt;

More from Boards Feedback

More by MXXIV