Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在liferay搜索容器的浏览器中显示html代码_Liferay_Liferay 6 - Fatal编程技术网

在liferay搜索容器的浏览器中显示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搜索容器显示表数据。在其中一个字段中,我需要显示给定的HTML代码。我的问题是如何在浏览器中显示html代码。我的代码如下

<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呈现为文本而不是组件。