ceceliazhen / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Encoding ampersand #2

Open jericahuang opened 7 years ago

jericahuang commented 7 years ago

https://github.com/ceceliazhen/prj-rev-bwfs-dasmoto/blob/master/Craft/index.html#L10

Something great about the way Github displays your code for you is it highlights errors in red. You see errors on your ampersands in HTML because they're an entity that should be encoded with &. So your HTML would instead have something like Dasmoto's Arts & Crafts and it will appear exactly the same, but encoding won't throw any errors. :)

Check out this reference for a more in-depth rationale: https://www.quora.com/Why-should-the-ampersand-character-be-HTML-escaped

ceceliazhen commented 7 years ago

Good to know! Thank you!