Angry Pikachu
ย ยทย FF Enjoyer ๐Ÿ”ฅ

Html View - Is it possible to define limitation like max characters / lines just like for a text widget ?

Resolved

Hi !

As i said in the title, i'm wondering if i can have any power on the UI of a HTML View.

For context : Im using an API call to get some information, in this case it's some html content for an article. I want all article to be in a list on the home page and people to be able to read only 4/5 lines. Once on the article page the HTML View display everything and people can read it.

The fact is, i have no trouble for the article page but for the home page i can either put the content of the API call in a text widget and cut it at 5/6 lines but the HTML is visible (<p>, etc) and it's horrible or i can use a HTML View but it seems i can't have any control on it, it display everything.

Thanks for taking the time to read (and anwsering if you have a solution ๐Ÿ˜„)

Have a good day.

2 replies