views.py: Use lxml rather than regular expressions