--- title: contains slug: Web/XPath/Functions/contains translation_of: Web/XPath/Functions/contains original_slug: Web/XPath/Fonctions/contains --- {{ XsltRef() }} La fonction `contains` détermine si la chaîne passée en premier argument contient la chaîne passée en second argument et retourne le booléen `true` ou `false`. ### Syntaxe contains( meule , aiguille ) ### Arguments - `meule` - : La chaîne dans laquelle chercher. - `aiguille` - : La chaîne à rechercher dans `meule` ### Retour `true` si `meule` contient `aiguille`. Autrement, `false`. ### Définition [XPath 1.0, section 4.2](http://www.w3.org/TR/xpath#function-contains). ### Support Gecko Supportée.