function escapeAttr( string ) {
	return String( string ).replace( /["']/g, function ( s ) {
		return entityMap[s];
	} );
}
/**
 * Escapes the given string string ready to be output as the value of an HTML attribute.
 *
 * Also used in form_editor.js
 *
 * @since 2.4.13
 *
 * @param {string} string The string to escape.
 * @returns {string}
 */
Escapes the given string string ready to be output as the value of an HTML attribute.




Escapes the given string string ready to be output as the value of an HTML attribute .
function escapeAttr( string ) {
	return String( string ).replace( /["']/g, function ( s ) {
		return entityMap[s];
	} );
}
function escapeAttr ( string ) { return String ( string ) . replace ( / ["'] / g , function ( s ) { return entityMap [ s ] ; } ) ; }
Escapes the given string string ready to be output as the value of an HTML attribute.
Escapes the given string string ready to be output as the value of an HTML attribute .