Using Liferay Util Whitespace Remover

The whitespace remover tag removes line breaks and tabs from code blocks included between the opening and closing of the tag. Below is an example configuration for the <liferay-util:whitespace-remover> tag:

with remover:

<liferay-util:whitespace-remover>
	<p>Here is some text with        tabs.</p>
</liferay-util:whitespace-remover>

result:

Here is some text withtabs.

Now you know how to use the <liferay-util:whitespace-remover> tag to ensure that your code formatting is consistent.

« Using Liferay Util ParamUsing the Clay Taglib in Your portlets »
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助