1
I am consuming an API, and this API has a description. I would like to display this description with a character limit, and if you exceed this limit, add a (...) to the end or go to the last endpoint.
The code I have is something like:
let descricao = document.querySelector('.descricao').
descricao.innerHTML = `<p>${dado.descricao}</p>`
I wish that paragraph had a 130-character limitation, someone knows how to do it?
document.querySelector('.descricao')
is which html tag?– Maury Developer