![]() |
remove tags and atributs from html - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: remove tags and atributs from html (/showthread.php?tid=58198) |
remove tags and atributs from html - El Forum - 05-23-2013 [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! remove tags and atributs from html - El Forum - 05-23-2013 [eluser]Harold Villacorte[/eluser] This works: Code: /(?:[\w]*) *= *"(?:(?:(?:(?:(?:\\\W)*\\\W)*[^"]*)\\\W)*[^"]*")/gi |