﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
18240	wp_localize_script() shouldn't convert character entities	johnbillion		"If you pass a string to `wp_localize_script()` which contains special HTML characters such as ""&"" they'll get converted to their entities, resulting in JavaScript strings that contain entities when they shouldn't. Looks like the entity conversion in `esc_js()` is the culprit.

Example:

{{{
wp_localize_script(
	'myscript',
	'something',
	array(
		'message'  => __( 'This & that', 'something' )
	)
);
}}}

If you then do this:

{{{
alert( something.message );
}}}

the alert modal will show:

{{{
This &amp; that
}}}"	defect (bug)	closed	normal		I18N	3.2.1	normal	duplicate		
