summaryrefslogtreecommitdiff
path: root/www/crm/wp-admin/js/updates.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/crm/wp-admin/js/updates.js')
-rw-r--r--www/crm/wp-admin/js/updates.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/crm/wp-admin/js/updates.js b/www/crm/wp-admin/js/updates.js
index 99abada9..9afa4957 100644
--- a/www/crm/wp-admin/js/updates.js
+++ b/www/crm/wp-admin/js/updates.js
@@ -262,7 +262,8 @@
if ( 'undefined' !== typeof response.debug && window.console && window.console.log ) {
_.map( response.debug, function( message ) {
- window.console.log( $( '<p />' ).html( message ).text() );
+ // Remove all HTML tags and write a message to the console.
+ window.console.log( wp.sanitize.stripTagsAndEncodeText( message ) );
} );
}
};