1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 15:53:34 +02:00

htmlq: add Spanish translation (#15723)

This commit is contained in:
Darío Hereñú 2025-02-14 07:02:12 -03:00 committed by GitHub
parent 7b83b7ee94
commit 27bdd850a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

24
pages.es/common/htmlq.md Normal file
View file

@ -0,0 +1,24 @@
# htmlq
> Utiliza selectores CSS para extraer contenido de archivos HTML.
> Más información: <https://github.com/mgdm/htmlq>.
- Devuelve todos los elementos de la clase `card`:
`cat {{ruta/al/archivo.html}} | htmlq '.card'`
- Obtiene el contenido del texto del primer párrafo:
`cat {{ruta/al/archivo.html}} | htmlq --text 'p:primer-del-tipo'`
- Encuentra todos los enlaces de una página:
`cat {{ruta/al/archivo.html}} | htmlq --attribute href 'a'`
- Elimina todas las imágenes y archivos SVG de una página:
`cat {{ruta/al/archivo.html}} | htmlq --remove-nodes 'img' --remove-nodes 'svg'`
- Impresión bonita y escritura de la salida en un archivo:
`htmlq --pretty --filename {{ruta/a/archivo.html}} --output {{ruta/a/salida.html}}`