RSS Feed/News How to trim the value of a variable?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,115
Points
823

Reputation:

Hi folks, I have this code
Code:

<xf:if is="{$block.block_title} != 'Conclusion' && {$block.block_title} != 'Conclusion '">
and going by my coding background that the trim function removes leading and trailing spaces, I want to shorten it to
Code:

<xf:if is="<xf:trim>{$block.block_title}</xf:trim> != 'Conclusion'">
Except, that doesn't work, does it.
So how do I do this, please?
Thanks

Continue reading...
 
Status
Not open for further replies.
Top