Forums / Developer / eZXMLObject does it like br tags ?

"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".

eZXMLObject does it like br tags ?

Author Message

Rainer Krauss

Friday 10 July 2009 8:14:39 am

Dear all,

I'm importing a website into my Exponential installation.

Some of the content goes into body content fields of eZXMLObject type.

That content has some HTML formatting. My customer asked me to preserve the br tags.

Can I do that, and how? It's not in the documentation.

Best wishes,
Rainer

Rainer Krauss

Monday 13 July 2009 12:27:54 am

Yes, it is possible to import <br /> tags into eZXLMObjects - even though it's not mentioned as one of the allowed tags in the documentation at http://ez.no/developer/forum/developer/how_to_import_html_into_an_ezxmlobject

Heath

Monday 13 July 2009 7:03:38 am

You might be able replace your br tags with custom tags or html (allowed within tag) wrapper around your br tags and finally I think you might be able to replace br tags with p tags (not certain if those would store either).

You could also use a textarea datatype instead to allow for html storage directly. Though I recommend against that for primary text content use along with most of the folks who use Exponential (which may be why this topic is so quiet).

Basically you need to convert br tags into another form in order to preserve this element during content storage.

Cheers,
Heath

7x | https://se7enx.com/
Brookins Consulting | https://brookinsconsulting.com/
Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350
Solutions | https://projects.exponential.earth/users/community/brookins-consulting
eZpedia community documentation project | http://ezpedia.se7enx.com