Not long ago, I posted about PHP templating in just PHP (which is basically HEREDOC syntax). I’m literally using that technique for some super basic templating I needed to do on this very WordPress site. The main pushback was that this kind of thing can be an XSS vulnerability. In my case, it’s not, because I’m not using it for anything other than an abstraction convenience for my own hand-written strings.
You may also like
I have a document with a numbered list in it. Each entry was originally a single line, but as I have developed […]
I have a website running on Magento where my account feature does not work on the mobile version of the website. I […]
When I open a particular excel workbook I am getting the message “We cannot connect to http://www.stackoverflow.com/test/testfile.xls’. Please make sure you are […]
I have a systemd service on a Raspberry Pi that reads the configuration from EEPROM and parses it to .env format. Other […]