Issue 2133: htmlEscape() function corrupts entities in custom text for buttons
Status:  WontFix
Owner: ----
Closed:  May 2014
Reported by dev.sw...@gmail.com, Apr 13, 2014
(Note: cannot make a Fiddle since the template provided by the link in the website includes v.1.6.4 which isn't affected by this bug.)

I was testing v2.0.0 beta 2 and I noticed a regression.

How to reproduce: try to assign to one or more buttons a custom text that includes a html entity.

I wanted to use entities for right and left arrows (← and →) but the entities didn't convert to the correct character, instead they resulted in an ampersand and then the 'larr;' or 'rarr;' string.

Inspecting the code of htmlEscape() function show that the first replacement is done by 

(s + '').replace(/&/g, '&')

but this part just replace the ampersand of each entities into '&', thus breaking the entity.

Changing /&/g into /&(?!\w+;)/g should solve the issue.
May 1, 2014
Project Member #1 adamrs...@gmail.com
this change was by design. it prevents html markup and entities in the string. your string will literally need to have the UTF-8 characters in there. please us a mixture of the new `buttonIcons` setting...

http://arshaw.com/fullcalendar/docs2/display/buttonIcons/

...in combination with some CSS that uses :after and the "content" CSS property (inspect the default buttons to see how this is done).
Summary: htmlEscape() function corrupts entities in custom text for buttons (was: [v2] htmlEscape() function corrupts entities in custom text for buttons)
Status: WontFix
Labels: milestone-date