I was looking through some PHP code I'd written a while ago (specifically a CMS with an extensive tag engine), and I came across a regular expression that reduced 60~ lines of PHP loops, conditionals, etc. to one line.
The regex is looking for an opening paragraph tag with css attribute, alphanumeric text, and a closing paragraph tag. What I don't quite understand is that the opening tag has a closing forward slash, like this: . This implies that your function processes XHTML markup, but as far as I know paragraph tags in XHTML don't need the closing slash.
Comments 4
Reply
. This implies that your function processes XHTML markup, but as far as I know paragraph tags in XHTML don't need the closing slash.
I await my prize.
Reply
An example would be:
( ... )
Reply
Reply
Leave a comment