Add htmlpurifier dependency
Use HtmlPurifier
Use centralized cache location
Move templates cache to centralized location