Answer the question
In order to leave comments, you need to log in
How to clear html from all tags leaving the main ones?
I'm looping through various regular expressions
like <(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+(?
and testing here - https ://www.regextester.com/93515
almost copes - but the code inside the script remains and other roughness
Share the solution - I parsed the html page - I want to leave only the "main" html code - with the main tags paragraph, title, bold - yes some more or less universal solution
?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question