diff --git a/src/wp-content/themes/twentyseventeen/404.php b/src/wp-content/themes/twentyseventeen/404.php
index 2807db1a88..1a87e46a34 100644
--- a/src/wp-content/themes/twentyseventeen/404.php
+++ b/src/wp-content/themes/twentyseventeen/404.php
@@ -18,10 +18,10 @@ get_header(); ?>
 
 			<section class="error-404 not-found">
 				<header class="page-header">
-					<h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'twentyseventeen' ); ?></h1>
+					<h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'twentyseventeen' ); ?></h1>
 				</header><!-- .page-header -->
 				<div class="page-content">
-					<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyseventeen' ); ?></p>
+					<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyseventeen' ); ?></p>
 
 					<?php get_search_form(); ?>
 
