Update models.py

Mark caption output as safe