S
S
Sergey Programmer 1C2018-08-23 12:11:04
Parsing
Sergey Programmer 1C, 2018-08-23 12:11:04

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 question

Ask a Question

731 491 924 answers to any question