掲示板
$ and { is stripped in HTML
11年前 に Muhammed Shakir AK Misarwala によって更新されました。
$ and { is stripped in HTML
Junior Member 投稿: 36 参加年月日: 09/02/26 最新の投稿
Hi Everyone,
Check the following code snippet :
Write the above code in .jsp of any portlet in Liferay 6.0 and prior. You will see that the complete innerHTML is shown in the alert i.e. <h5>Hello ${theTitle}</h5> Now write the same in Liferay 6.1 GA2. You will notice that the entire thing written in ${......} is stripped including the $ and brace brackets. The alert will print only <h5>Hello</h5>
I have checked the filter etc - but could not find anything. I will be grateful to any help or pointer towards the solution.
Thanks in Advance.
Check the following code snippet :
<div id="cd">
<h5>Hello ${theTitle} </h5>
</div>
<script>
var ob2 = document.getElementById("cd");
alert(ob2.innerHTML);
</script>
Write the above code in .jsp of any portlet in Liferay 6.0 and prior. You will see that the complete innerHTML is shown in the alert i.e. <h5>Hello ${theTitle}</h5> Now write the same in Liferay 6.1 GA2. You will notice that the entire thing written in ${......} is stripped including the $ and brace brackets. The alert will print only <h5>Hello</h5>
I have checked the filter etc - but could not find anything. I will be grateful to any help or pointer towards the solution.
Thanks in Advance.
11年前 に jelmer kuperus によって更新されました。
RE: $ and { is stripped in HTML
Liferay Legend 投稿: 1191 参加年月日: 10/03/10 最新の投稿
Add the following jsp page directive add the top of your page :
<%@ page isELIgnored="true" %>