With HTML I notice some libraries escape '
. My question is why? The first time I thought maybe they did it just because but I seen more then one do it but not all. I can't remember what I looked at from the top of my head but the others i remember were &
, <
, >
, "
.
I know & is used for escape characters (such as to make &
which is &
). <
and >
are escaped to not be confused for start/end tags and "
is done so you can put "
in tag attributes if you need to for some reason. But why '
? Also am I missing any other characters that should be escaped?