Function in test.py strips HTML tags