Closed graymalkin closed 9 years ago
12:26 < graymalkin> http://graymalk.in/test-lc.html
12:26 < wildbot> Title: Testing with lower case title tag
12:26 < graymalkin> http://graymalk.in/test-uc.html
...
Ugh, people who use upper case letters in HTML tags should die. =|
I'm currently going through the whole bot re-writing bits and doing a massive new version. I'll include that in the new version. =)
Note to self, change:
if( preg_match('%<title(.*)?>(.*?)</title>%s', $fileContents, $title ) )
to:
if( preg_match('%<title(.*)>(.*?)</title>%is', $fileContents, $title ) )
in URLTitle.php
Listener.
Closed seeing as I'm now using DOMDocument
to parse pages which generally works better (for when pages are less than the size limit).
I sill need to fix #9.
Consider using http://php.net/manual/en/simplexmlelement.xpath.php to find the TITLE tag in the DOM.