Fixes issue #5222 misinterpretation of "or" in a string
(and added edge case test for bug with "or" in a string in blade templates)