Skip to content

Instantly share code, notes, and snippets.

@lucasrizoli
Created January 12, 2012 21:33
Show Gist options
  • Save lucasrizoli/1603274 to your computer and use it in GitHub Desktop.
Save lucasrizoli/1603274 to your computer and use it in GitHub Desktop.
70 Unique Ways to Encode <
<
%3C
&lt
&lt;
&LT
&LT;
&#60
&#060
&#0060
&#00060
&#000060
&#0000060
&#60;
&#060;
&#0060;
&#00060;
&#000060;
&#0000060;
&#x3c
&#x03c
&#x003c
&#x0003c
&#x00003c
&#x000003c
&#x3c;
&#x03c;
&#x003c;
&#x0003c;
&#x00003c;
&#x000003c;
&#X3c
&#X03c
&#X003c
&#X0003c
&#X00003c
&#X000003c
&#X3C
&#X03C
&#X003C
&#X0003C
&#X00003C
&#X000003C
&#X3C;
&#X03C;
&#X003C;
&#X0003C;
&#X00003C;
&#X000003C;
x3c
x3C
u003c
u003C
&#X3c;
&#X03c;
&#X003c;
&#X0003c;
&#X00003c;
&#X000003c;
&#x3C
&#x03C
&#x003C
&#x0003C
&#x00003C
&#x000003C
&#x3C;
&#x03C;
&#x003C;
&#x0003C;
&#x00003C;
&#x000003C;
@lucasrizoli
Copy link
Author

@vjeux
Copy link

vjeux commented Dec 6, 2013

@StoneCypher
Copy link

All of the entities missing semicolons are incorrect.

@aaronblohowiak
Copy link

@aprilthemoo that is an impolite thing to ask.

@redchair123
Copy link

@aprilthemoo there's no need to offend autistic people

@adkatrit
Copy link

adkatrit commented Dec 7, 2013

@Niggler spoken from the username "niggler"

@jjt
Copy link

jjt commented Dec 7, 2013

@StoneCypher If some browsers interpret the ones without semicolons, then those are each a different way to encode the charcter. Did you mean to say "they're not according to spec"?

@dylanroy
Copy link

dylanroy commented Dec 7, 2013

For example: In some, if not all, browsers &ltsometext will not be parsed correctly. <sometext would be.

@monokrome
Copy link

Who let @aprilthemoo on the internet?!

@Keith-S-Thompson
Copy link

I encourage you to exercise a little editorial control on your comment section.

@devilshaircut
Copy link

Whoa ... this Gist needs a mod. Hah. Nice to see people sticking up for StoneCypher though.

@cocoademon
Copy link

@uhmseohun
Copy link

How about '>'??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment