Fixed Seo Twig Extension

- Replaced deprecated Twig features
- Introduced safe html escaping
- Changed echo to return