Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Form validation replaces inserted values with special characters replaced by html entities

form

Started by Kilian 3 years ago · 1 replies · 1167 views
3 years ago

I have a simple contact form where fields are validated with patterns.
When trying to send the form and validation of the fields fails, the values filled in the form fields are replaced by an "escaped" version (with html-entities) - means eg.:
"Thomas Test" becomes ""Thomas Test""
"[email protected]" becomes "test@test.com"

Could anybody help me how and where to fix that?
Thx in advance!

3 years ago

Great question, well explained.

Have you tried searching the Form plugin issues on Github? I'm not saying that's where the answer is, only that it seems like a good place to start. There are a few issues that seem similar. Please tell us if that helps.

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by TomW, 3 days ago
3 78 2 days ago
Forms & Blueprints · by Japhy, 3 weeks ago
2 394 2 weeks ago
Forms & Blueprints · by FrViPofm, 1 month ago
5 395 1 month ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2387 8 months ago
Forms & Blueprints · by Hugo Oliveira, 9 months ago
0 844 9 months ago