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

Ampersand Issue

Development and Programming

adamwiggall's avatar
adamwiggall
178 posts
16 years ago
adamwiggall's avatar adamwiggall

I am using the XHTML plug in by Rick, all is well apart from some ampersand encoding.

A site I am working on uses the phrase A&E (NO SPACES - meaning ‘Architectural and Engineering’) a lot. I understand that the ampersands in that do not get encoded because line 1315 in core.typography reads

"& "                    => "& "

The plug-in works when we write A & E (due to the space after the ampersand)

So, can I add another entry to the array like so

"&"                    => "& "

or will that cause me a load of headaches elsewhere?

I ask because there is little chance of me getting them to put in the spaces when they begin managing the content.

Thanks.

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
16 years ago
Pascal Kriete's avatar Pascal Kriete

I believe it will break entity decoding, so if your users want to post something like » (») it won’t work.

       
adamwiggall's avatar
adamwiggall
178 posts
16 years ago
adamwiggall's avatar adamwiggall

Makes sense, 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.