Modified version of the excelent str_replace extension

Author Message

Felix Laate

Wednesday 11 January 2006 5:31:15 am

Hi there, mother earth!

I've made a modified version of the excelent str_replace extension(http://ez.no/community/contribs/template_plugins/string_replace_operator).

The modifications I made are:

1) If called without the first two parameters, it now uses predefines arrays from a ini-file. One array of "search"-items, and one for their replacements. If called with the first two parameters, it works just like the original

2) whitespace-, tab- and newline-cleaning

Don't if this is of interest for anyone, but I want to put into the contribs. I just don't know where, as it's mainly somebody elses work.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

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