Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I have an email address on my form which is validated against the following regular expression:
^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$
When the expression is output into the markup the ampersands are HTML encoded giving the following regex:
^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$
Is there any way I can stop the ampersands from being HTML encoded?
Comment author was deleted
Yeah update the views to use Html.Raw() will also fix this in the next maintenance release
Details on customizing the views can be found here http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/Custom-Markup/
Issue in our tracker: http://issues.umbraco.org/issue/CON-409
Thanks Tim, your workaround works for me :)
Cool thanks for confirming :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Ampersands in regular expressions
Hello,
I have an email address on my form which is validated against the following regular expression:
When the expression is output into the markup the ampersands are HTML encoded giving the following regex:
^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$
Is there any way I can stop the ampersands from being HTML encoded?
Comment author was deleted
Yeah update the views to use Html.Raw() will also fix this in the next maintenance release
Details on customizing the views can be found here http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/Custom-Markup/
Comment author was deleted
Issue in our tracker: http://issues.umbraco.org/issue/CON-409
Thanks Tim, your workaround works for me :)
Comment author was deleted
Cool thanks for confirming :)
is working on a reply...