Welcome Guest, Not a member yet? Register   Sign In
remove tags and atributs from html
#1

[eluser]Unknown[/eluser]
does any1 knows how can i remove tags and atributes from html? i used strip_tags, but it just remove tags, and how can i remove the atributes?
thanks!
#2

[eluser]Harold Villacorte[/eluser]
This works:
Code:
/(?:[\w]*) *= *"(?:(?:(?:(?:(?:\\\W)*\\\W)*[^"]*)\\\W)*[^"]*")/gi
Source: RegExr




Theme © iAndrew 2016 - Forum software by © MyBB