Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Escaping search term quiz

Notice in case anyone gets stuck here: The validator will fail your code for leaving whitespace in the html tag, like <input addedAtb1="der" >, I usually code xhtml compliant so <input /> but just a letting people know to avoid wasting a lot of time or quitting the project. I don't know how the validator works & suspect it's fairly complex based on it accepting some of my prior answers, but is peculiarly particular here.

2 Answers

Noted, thanks Morgan!

"Bless you man, this was a big help". I had the right code, but it kept failing!! I checked the contact form (where we had done this before), tested the code out elsewhere and it worked, but here, it kept failing. Then I read this notice about the whitespace, and scrunched everything up. Rechecked and "voila" it the green bar of success appeared. Thank you Morgan