how to convert plain text to ezxml?

Author Message

zurgutt -

Wednesday 30 March 2011 4:47:14 am

I have plain text (email contents) that php script should import into ezxml. How to do it so that it would display roughly the same as result? I guess this basicly just means converting \n to paragraph breaks? Is there convenient functions for this?

Certified eZ developer looking for projects.
zurgutt at gg.ee

Marko Žmak

Thursday 31 March 2011 2:02:07 am

As far as I know, there's no such helper function in eZP (not 100% sure though), but that can easily be done using the preg_replace() php function.

Also take a look at this useful tutorial:

  • http://share.ez.no/learn/ez-publish/creating-ez-publish-objects-in-php

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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