Forums / Developer / how to convert plain text to ezxml?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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