We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Rich Text in XML best approach?

Developer Preview

User aridHq2J's avatar
User aridHq2J
5 posts
3 months ago
User aridHq2J's avatar User aridHq2J

If I’m outputting rich text field content into an XML file that will be used to import into a different site, should I use <![CDATA[{content}]]> or a variable modifier on the {content} ?

       
Rob Allen's avatar
Rob Allen
3,108 posts
3 months ago
Rob Allen's avatar Rob Allen

Use CDATA

       
bsrweb's avatar
bsrweb
24 posts
3 months ago
bsrweb's avatar bsrweb

Yeah, looking at an old RSS Feed template, I just wrapped it in the CDATA tag:

<content type="html"><![CDATA[
    {main_content}
]]></content>
       
User aridHq2J's avatar
User aridHq2J
5 posts
3 months ago
User aridHq2J's avatar User aridHq2J

thanks!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.