| @@ -283,9 +283,10 @@ | ||
| 283 | 283 | $heading = trim(wp_strip_all_tags((string) ($settings['heading'] ?? ''))); |
| 284 | 284 | $schema = [ |
| 285 | 285 | '@context' => 'https://schema.org', |
| 286 | 286 | '@type' => 'HowTo', |
| 287 | - 'name' => $heading !== '' ? $heading : get_the_title(), | |
| 287 | + // The fallback is get_the_title(), texturized HTML (#976). | |
| 288 | + 'name' => \ThinkRank\Core\Seo_Text::normalize_schema_name($heading !== '' ? $heading : (string) get_the_title()), | |
| 288 | 289 | 'step' => $step_entities, |
| 289 | 290 | ]; |
| 290 | 291 | |
| 291 | 292 | $description = trim(wp_strip_all_tags((string) ($settings['description'] ?? ''))); |