How do I write XPath in text?

How do I write XPath in text?

This is the syntax to locate elements via XPath- Through text() method which can be written in the form of: //*[text()=‘Google offered in’]