|
|
|
|
|
by jiggy2011
4904 days ago
|
|
I think my solution back in the day was just to include the template files by running a function, something like showTemplate($templateName, $templateVars). The function takes an array as an arg so only these values are available to the template context (apart from the many global vars of course). You can then run this entire array through htmlentities or htmlspecialchars before doing include(). |
|