[BUGFIX] Add missing htmlspecialchars in DocumentTemplate