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

XML Encode plugin not encoding

Development and Programming

sstedman's avatar
sstedman
1 posts
17 years ago
sstedman's avatar sstedman

I can’t seem to get the XML Encode plugin (1.2) to work (on EE 1.6.3). If I understand correctly, it should take something like this:

{exp:xml_encode}http://test.com?a=1&b=2&c=3{/exp:xml_encode}

…and output

http://test.com?a=1&b=2&c=3

…(ampersands converted to the XML entity &). However, my output is the original unencoded string:

http://test.com?a=1&b=2&c=3

Oddly, if I try:

{exp:xml_encode protect_entities="yes"}http://test.com?id=1&p=&z=26{/exp:xml_encode}

…then the encoded & entities get unencoded, resulting in:

http://test.com?a=1&b=2&c=3

What am I doing wrong?

       

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.