I am trying to setup a Telegram Instant View for a website.
this website has a lot of empty
tags that i don’t know how to remove them.
<p style="text-align: justify;"> </p>
i want to find a way to remove and get rid of these kind of
tags
2
Answers
I found it Ehasn:
First replace all ” ” content with sample string like “null-tag” the remove them using this code:
Note that it might change some contents check some pages to make sure it work fine for you.
If you want to remove
just use@replace
function:If you want to remove tags with spaces, call
@remove
and pass a predicate, that selects empty nodes after space normalization.