Forums / Developer / Formatted text into plain text [SOLVED]
Lo' F.
Monday 06 September 2010 9:45:14 am
Hello again!
In the home page I show brief previews of the articles' body attribute text.
The thing is: the article body text is formatted and it keeps its style when I fetch it to be displayed, while I just want it to appear as a plain text.
It seems there is not a template operator which allow to do this - ..|wash() doesn't do what I want..
Is there a way I can do that?
Thanks!
loredanaebook.it
Monday 06 September 2010 10:02:48 am
..Never mind!
I just discovered strip_tags()
Nicolas Pastorino
Monday 06 September 2010 10:21:28 am
And that's a "self-replied" medal for you Lo'F ;)
Cheers !
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye
Philippe VINCENT-ROYOL
Monday 06 September 2010 1:47:24 pm
Hehe, never forget PHPOperatorList, could be really usefull ;)
Cheers
ps: dont forget to change your post to resolved :)
Certified Developer (4.1): http://auth.ez.no/certification/verify/272607 Certified Developer (4.4): http://auth.ez.no/certification/verify/377321 G+ : http://plus.tl/dspe Twitter : http://twitter.com/dspe