在liferay搜索容器的浏览器中显示html代码
我正在使用liferay搜索容器显示表数据。在其中一个字段中,我需要显示给定的HTML代码。我的问题是如何在浏览器中显示html代码。我的代码如下在liferay搜索容器的浏览器中显示html代码,liferay,liferay-6,Liferay,Liferay 6,我正在使用liferay搜索容器显示表数据。在其中一个字段中,我需要显示给定的HTML代码。我的问题是如何在浏览器中显示html代码。我的代码如下 <liferay-ui:search-container-column-text property="question" name="Question" /> 您可以这样做: <liferay-ui:search-container-column-text name="Question" > <div class="
<liferay-ui:search-container-column-text property="question" name="Question" />
您可以这样做:
<liferay-ui:search-container-column-text name="Question" >
<div class="question"><%= nameOfTheObjectInCollection.getQuestion() %></div>
</liferay-ui:search-container-column-text>
尝试使用
或
标记附加值,这将使HTML呈现为文本而不是组件。