html_to_text MDL-25018 fix regression caused by be previous comment.

Thanks Eloy for spotting this.
I was worried about this happening, so I checked the diff before committing, to make sure something like this did not happen, and still Eclipse+CVS screwed it up for me. Sorry.
This commit is contained in:
Tim Hunt
2010-11-02 21:50:20 +00:00
parent 36a40748e1
commit 9e8badd3a0
+3 -3
View File
@@ -165,10 +165,10 @@ END;
//no link at all
'This is a story about moodle.coming to a cinema near you.'=>'This is a story about moodle.coming to a cinema near you.',
//URLs containing utf 8 characters
'http://I�t�rn�ti�n�liz�ti�n.com?�=n��'=>'<a href="http://I�t�rn�ti�n�liz�ti�n.com?�=n��" target="_blank">http://I�t�rn�ti�n�liz�ti�n.com?�=n��</a>',
'www.I�t�rn�ti�n�liz�ti�n.com?�=n��'=>'<a href="http://www.I�t�rn�ti�n�liz�ti�n.com?�=n��" target="_blank">www.I�t�rn�ti�n�liz�ti�n.com?�=n��</a>',
'http://Iñtërnâtiônàlizætiøn.com?ô=nëø'=>'<a href="http://Iñtërnâtiônàlizætiøn.com?ô=nëø" target="_blank">http://Iñtërnâtiônàlizætiøn.com?ô=nëø</a>',
'www.Iñtërnâtiônàlizætiøn.com?ô=nëø'=>'<a href="http://www.Iñtërnâtiônàlizætiøn.com?ô=nëø" target="_blank">www.Iñtërnâtiônàlizætiøn.com?ô=nëø</a>',
//text containing utf 8 characters outside of a url
'I�t�rn�ti�n�liz�ti�n is important to http://moodle.org'=>'I�t�rn�ti�n�liz�ti�n is important to <a href="http://moodle.org" target="_blank">http://moodle.org</a>',
'Iñtërnâtiônàlizætiøn is important to http://moodle.org'=>'Iñtërnâtiônàlizætiøn is important to <a href="http://moodle.org" target="_blank">http://moodle.org</a>',
//too hard to identify without additional regexs
'moodle.org' => 'moodle.org',
//some text with no link between related html tags