Parser with very basic support for if-statements |
[eluser]Jamie Rumbelow[/eluser]
Phil's right. Even if you're not pushing user-generated content through it just eval()ing whatever's in the template really isn't a good idea. You should build a templating system where you can pipe variables through functions, rather than just evaluating the code. Either that, or use one of the many solutions available. Heck, there's even more of them. |
Messages In This Thread |
Parser with very basic support for if-statements - by El Forum - 07-31-2009, 07:45 AM
Parser with very basic support for if-statements - by El Forum - 07-31-2009, 07:45 AM
Parser with very basic support for if-statements - by El Forum - 08-21-2009, 05:45 AM
Parser with very basic support for if-statements - by El Forum - 08-21-2009, 06:32 AM
Parser with very basic support for if-statements - by El Forum - 10-29-2009, 10:00 AM
Parser with very basic support for if-statements - by El Forum - 10-29-2009, 11:03 AM
Parser with very basic support for if-statements - by El Forum - 05-08-2012, 05:40 PM
|