I use PHP\'s EOF string to format HTML content without the hassle of having to escape quotes etc. How can I use the function inside this string?
As far as I can see, you just added heredoc by mistake No need to use ugly heredoc syntax here. Just remove it and everything will work:
Hello = _("World"); ?>
Hello
= _("World"); ?>