` tag
Unlike other tags, `` doesn't ignore leading, trailing, or duplicate
whitespaces as shown below:
```html
Other tags
Hello, World !
Pre tag
Hello, World !
```
Rendered result:
To reflect this behavior, Cypress also doesn't ignore them.
```js
// test result for above code
cy.get('p').contains('Hello, World !') // pass
cy.get('p').contains(' Hello, World !') // fail
cy.get('pre').contains('Hello, World !') // fail
cy.get('pre').contains(' Hello, World !') // pass
```
### Non-breaking space
You can use a space character in `cy.contains()` to match text in the HTML that
uses a non-breaking space entity ` `.
```html
Hello world
```
```javascript
// finds the span element
cy.contains('Hello world')
```
**Tip:** read about assertions against a text with non-breaking space entities
in
[How do I get an element's text contents?](/app/faq#How-do-I-get-an-elements-text-contents)
### Single Element
#### Only the _first_ matched element will be returned
```html