Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.

View in English Always switch to English

contains

Referencia de XSLT y XPath: Elementos XSLT, Funciones EXSLT, XPath:Funciones, XPath:Ejes

Sintaxis

contains( haystack , needle )

Argumentos

haystack

La cadena donde buscar

needle

La subcadena a buscar en haystack

Devuelve

true si haystack contiene needle. Si no, false.

Definido

XPath 1.0 4.2

Soporte en Gecko

Soportado.