Correctly handle HTML notifications

Thanks to Benjamin Tayehanpour (konaya) for pointing out this issue.