brianchandotcom/liferay-portal — pull request #6062 by samuelkong (2012-07-13 09:39:23+00:00)
Title: Lps 28359

We can't use UnicodeLanguageUtil in HTML. You can only use it in JS strings. (Side note, I generally prefer HtmlUtil.escapeJS over UnicodeLanguageUtil because the later generates much longer strings.)

I also reverted both my change and your change to view_template.jsp. We need to use escapeJS in the JavaScript because the escaping done by escapedModel is not sufficient for JavaScript.