I have a form like this:
<form action="/web/" method="get">
<input type="search" name="keyword_search_query">
<input type="submit" value="Search…">
</form>
This is a search form for my website.
What is the right/common way to encode these data into a search query to avoid unexpected behavior?
For instance, having an &
in one of the inputs will cut the search query. How should I escape those characters?
P.S. How does Google do it?