diff --git a/src/Themosis/View/Compilers/ScoutCompiler.php b/src/Themosis/View/Compilers/ScoutCompiler.php
index <HASH>..<HASH> 100644
--- a/src/Themosis/View/Compilers/ScoutCompiler.php
+++ b/src/Themosis/View/Compilers/ScoutCompiler.php
@@ -231,7 +231,7 @@ class ScoutCompiler extends Compiler implements ICompiler {
      */
     protected function compileEchoDefaults($content)
     {
-        return preg_replace('/^(?=\$)(.+?)(?:\s+or\s+)(.+?)$/s', 'isset($1) ? $1 : $2', $content);
+        return preg_replace('/^.*?([\'"])(?:(?!\1).)*or(?:(?!\1).)*\1.*?$(*SKIP)(*F)|^(\S+) or (.*)$/', 'isset($2) ? $2 : $3', $content);
     }
 
     /**
Update scout compiler echo statement. Fix from Blade compiler.