Strip \n characters from a string

Strip \n characters from a string

Friday 22 September 2006 9:43:11 am - 1 reply

Author Message

Claudia Kosny

Friday 22 September 2006 1:41:50 pm

Hello Alejandro

I fyou just want to trim the string (i.e. remove whitespace from the beginning and of the string), use the trim operator. If you want to remove whitespace from the middle of the string you might need a preg_replace functionality, which is offered by this extension:

http://ez.no/community/contribs/template_plugins/reg_ex_replace

Greetings from Luxembourg

Claudia

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.