diff --git a/src/wp-includes/js/wp-a11y.js b/src/wp-includes/js/wp-a11y.js index 3acca7ff99..2507cbc2f4 100644 --- a/src/wp-includes/js/wp-a11y.js +++ b/src/wp-includes/js/wp-a11y.js @@ -20,6 +20,9 @@ window.wp = window.wp || {}; // Clear previous messages to allow repeated strings being read out. clear(); + // Ensure only text is sent to screen readers. + message = $( '
' ).html( message ).text(); + if ( $containerAssertive && 'assertive' === ariaLive ) { $containerAssertive.text( message ); } else if ( $containerPolite ) {