Ultimate Regular Expression for HTML tag parsing with PHP
!!! alert alert-warning βDisclaimerβ This is a dirty hack! To parse HTML or XML, use a dedicated library. Tonight I found the ultimate regex to get HTML tags out of a string. It was written a year ago by Phil Haack on his blog . His regex is quite bullet-proof: itβs β¦