original_string: public function quote($text, \Mustache_LambdaHelper $helper) {
          // Split the text into an array of variables.
          $content = trim($text);
          $content = $helper->render($content);
  
          // Escape the {{ and the ".
          $content = str_replace('"', '\\"', $content);
          $content = preg_replace('([{}]{2,3})', '{{=<% %>=}}${0}<%={{ }}=%>', $content);
          return '"' . $content . '"';
      }
code: public function quote($text, \Mustache_LambdaHelper $helper) {
          // Split the text into an array of variables.
          $content = trim($text);
          $content = $helper->render($content);
  
          // Escape the {{ and the ".
          $content = str_replace('"', '\\"', $content);
          $content = preg_replace('([{}]{2,3})', '{{=<% %>=}}${0}<%={{ }}=%>', $content);
          return '"' . $content . '"';
      }
code_tokens: public function quote ( $ text , \ Mustache_LambdaHelper $ helper ) { // Split the text into an array of variables. $ content = trim ( $ text ) ; $ content = $ helper -> render ( $ content ) ; // Escape the {{ and the ". $ content = str_replace ( '"' , '\\"' , $ content ) ; $ content = preg_replace ( '([{}]{2,3})' , '{{=<% %>=}}${0}<%={{ }}=%>' , $ content ) ; return '"' . $ content . '"' ; }
docstring: Wrap content in quotes, and escape all quotes used.
  
  Note: This helper is only compatible with the standard {{ }} delimeters.
  
  @param string $text The text to parse for arguments.
  @param Mustache_LambdaHelper $helper Used to render nested mustache variables.
  @return string
docstring_tokens: Wrap content in quotes and escape all quotes used .