use your own placeholder scheme. Don't evaluate their input as PHP its too dangerous.
here I use square brackets to denote my placeholders
https://www.dropbox.com/s/abhkuvwkfdqg19r/r4fbtemplates.jpg?dl=0
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
lets say i want user to write their own notification content with php syntax, how to make sure their input does not interfere with current application instead using twig.
Please or to participate in this conversation.