Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
core\output\mustache_quote_helper Class Reference

Wrap content in quotes, and escape all quotes used. More...

Public Member Functions

 quote ($text, Mustache_LambdaHelper $helper)
 Wrap content in quotes, and escape all quotes used. More...
 

Detailed Description

Wrap content in quotes, and escape all quotes used.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ quote()

core\output\mustache_quote_helper::quote (   $text,
Mustache_LambdaHelper  $helper 
)

Wrap content in quotes, and escape all quotes used.

Note: This helper is only compatible with the standard {{ }} delimeters.

Parameters
string$textThe text to parse for arguments.
Mustache_LambdaHelper$helperUsed to render nested mustache variables.
Return values
string

The documentation for this class was generated from the following file: