& to & in text fields

5 posts by 3 authors in: Forums > CMS Builder
Last Post: March 25, 2009   (RSS)

Hi,

When entering text into a text field (text box, text field etc), when you type an AND sign (&), it renders/displays this directly in the html source as "&".

"&" results in invalid xHTML - it needs to be converted to the correct escape format of "&" in order to validate.

If I type "&" in the text field, it displays "&" on the page, rather than converting it to correct display character, e.g.

"The house & the car"


So... is there anyway the textbox/fields can be fixed so that automatically convert & to & to correctly parse it in xHTML?

Hope that makes sense...

Cheers
Rob

Re: [rjbathgate] & to & in text fields

By Kenny - March 25, 2009

Rob,

I'm not able to duplicate your problem.

Whenever I type in &amp it displays as &

I have tested this on a textbox and text field using version 1.27

Kenny

Re: [sagentic] & to & in text fields

Ha you're right, it works now...

Perhaps it's been fixed in an update of the CMSB... or when I was trying it, I'd done something wrong...

Note it needs to be & to validate (with the ;)

While this works, it's not ideal from userability point of view - can't expect the client to type & instead of &, so ideally it'd be good if it can still auto turn "&" into &

Cheers :)

Re: [Dave] & to & in text fields

Excellent :)

Will give that a play, cheers Dave!