Hacker News new | ask | show | jobs
by prodigal_erik 5014 days ago
PHP is not a HTML template engine. You have to run all your content through library functions to encode and prevent it from being interpreted as markup. That's essentially making your own half-baked template engine from scratch in PHP, and it would be just as easy in any sane language.