Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new

Learn more

View all

Sign in to view all badges

"&" character isn't getting posted to server upon submit

Level 10
Level 10


When XDP templates are rendered as HTML5 forms and if the user enters "&" character into any of the fields, that particular field's content become blank upon submit.

Did anyone come across this issue? Do I need to encode the characters before submit?

Please advise.



1 Reply
Level 10
Level 10

Hi there,

there is big chances that you are right, maybe you will need to use a function to make sure each fields contains valid data for XML / HTML

Try replacing & for & and if this work for ya, use the following function to prepare strings for XML / HTML data

Hope this will help ya!