hhuijser/liferay-portal — pull request #1753 by yuhai (2014-02-23 06:44:51+00:00)
Title: LPS-44328 The apostrophe in a user's name appears as HTML numeric charac...

...ter reference (') in the Site Memberships page.

The name field had been escaped two times.

The first time is in user2.getFullName(). When executes the method user2.getFullName(), the AutoEscapeBeanHandler.invoke method will be invoked. When the program executes the below code in this method
###
if (method.getAnnotation(AutoEscape.class) != null) {
result = HtmlUtil.escape((String)result);
}
//Due to User.getFullName() uses the annotation "@com.liferay.portal.kernel.bean.AutoEscape()", so the program will execute the if block so that the first time escape occurs.
###

The second time is in HtmlUtil.escape().

So the fix removes the second time escape.