Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

do crawlers decode html entities?

i was wondering if the crawlers and robots can decode html entities for example in my html i have something like:

salariés

do they read it like that? or something like:

salariés

which option is better for SEO?

like image 499
Raul Leaño Martinet Avatar asked Jan 28 '26 13:01

Raul Leaño Martinet


2 Answers

I'd say you can safely assume that HTML entities are properly decoded. They are valid HTML, and a crawler not decoding them would end up with tons of broken content.

like image 83
Pekka Avatar answered Jan 30 '26 08:01

Pekka


Most of the crawlers will decode your entities, as they need pure text to compute the data and extract information.

If you want to help them, use an appropriate encoding (as utf8), a good charset meta, and avoid html entities.

like image 35
Guillaume Lebourgeois Avatar answered Jan 30 '26 06:01

Guillaume Lebourgeois