Pretty sure that's just PHP being PHP. With a backslash just before the closing single quote, the backslash is trying to be an escape character. Though it's possible it works just fine in PHP and your editor is interpreting it incorrectly. I know you need it with double-quotes, not sure with singles.