[legacy:TextFilter] support HTMLPurifier >= 4.4.0
Merge branch 'htmlpurifier' into pilot