diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
index 680a09ff32..0bebccbae7 100644
--- a/src/wp-admin/includes/ajax-actions.php
+++ b/src/wp-admin/includes/ajax-actions.php
@@ -3561,7 +3561,7 @@ function wp_ajax_query_themes() {
 			);
 		}
 
-		$theme->name        = wp_kses( $theme->name, $themes_allowedtags );
+		$theme->name        = wp_specialchars_decode( wp_kses( $theme->name, $themes_allowedtags ) );
 		$theme->author      = wp_kses( $theme->author['display_name'], $themes_allowedtags );
 		$theme->version     = wp_kses( $theme->version, $themes_allowedtags );
 		$theme->description = wp_kses( $theme->description, $themes_allowedtags );
diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
index 9832099f91..6878dc05c3 100644
--- a/src/wp-includes/class-wp-customize-manager.php
+++ b/src/wp-includes/class-wp-customize-manager.php
@@ -5851,7 +5851,7 @@ final class WP_Customize_Manager {
 					$update_php
 				);
 
-				$theme->name        = wp_kses( $theme->name, $themes_allowedtags );
+				$theme->name        = wp_specialchars_decode( wp_kses( $theme->name, $themes_allowedtags ) );
 				$theme->version     = wp_kses( $theme->version, $themes_allowedtags );
 				$theme->description = wp_kses( $theme->description, $themes_allowedtags );
 				$theme->stars       = wp_star_rating(
