- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 12.05.20, 20:35
- Opened by: Marco Montanari
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #17845 - [ SUGGESTION] Improve schema.org product to validate
on each product page there is a
<script type="application/ld+json">
the description field used is not fault tallerant.
the rule to make the schema works is:
1) if the Summary field is empty use Description field of product
Summary is usually a short description suitable for schema.org description, but must be cleanedup from HTML parts.
Only in case is empty you can use a html cleaned up version of the Description (long description field usually full of html tags)
Comments
Hi Marco.
Can you contact me in PV please ?
I am agree with you and want to talk about it.
Do you mean this line?
yes that is the schema.org description line.
Must be a fall back using first the summary description if available then a product description or if not a meta description (seo field)
Done
Hi Fred,
the right sequence must be:
Please cleanup from HTML the $product.description_short and $product.description to avoid HTML inside these fields for schema.org
like:
and for meta:
Inside the schema, and in generally in all title, alt and so on tags, all text must be escaped to reach the validation and erach AMP/HTML validation too
Done
Fred is better to remove/strip html in case of :
or
$page.meta.description cannot contain HTML tags so you need only to escaping the variable.
This patch is already applied in my installation?
thanks
Thank you for suggestion