File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,15 +36,21 @@ Each endpoint in the Search API uses [query parameters](https://en.wikipedia.org
3636A query can contain any combination of search qualifiers supported on {% data variables.product.product_name %}. The format of the search query is:
3737
3838```
39- q= SEARCH_KEYWORD_1+ SEARCH_KEYWORD_N+ QUALIFIER_1+ QUALIFIER_N
39+ SEARCH_KEYWORD_1 SEARCH_KEYWORD_N QUALIFIER_1 QUALIFIER_N
4040```
4141
4242For example, if you wanted to search for all _ repositories_ owned by ` defunkt ` that
4343contained the word ` GitHub ` and ` Octocat ` in the README file, you would use the
4444following query with the _ search repositories_ endpoint:
4545
4646```
47- q=GitHub+Octocat+in:readme+user:defunkt
47+ GitHub Octocat in:readme user:defunkt
48+ ```
49+
50+ ** Note:** Be sure to use your language's preferred HTML-encoder to construct your query strings. For example:
51+ ``` javascript
52+ // JavaScript
53+ const queryString = ' q=' + encodeURIComponent (' GitHub Octocat in:readme user:defunkt' );
4854```
4955
5056See "[ Searching on GitHub] ( /articles/searching-on-github/ ) "
You can’t perform that action at this time.
0 commit comments