Why this matters
The production reason.
Fix WordPress SEO issues by keeping one clear H1, escaping template output, and compressing images before WordPress upload. This matters because small implementation habits compound across every page, component, and handoff in a production codebase.
Use the pattern where the behavior is owned, keep the API small, and make the result easy for another developer to verify later.
The goal is not clever code. The goal is predictable code that survives new content, new teammates, and real user traffic.
<h1><?php echo esc_html( get_the_title() ); ?></h1>