@@ -48,7 +48,7 @@ to you to process the array appropriately in your PHP code.
4848Method Chaining
4949===============
5050
51- The `setVar() ` and `setData() ` methods are chainable, allowing you to combine a
51+ The `` setVar() `` and `` setData() ` ` methods are chainable, allowing you to combine a
5252number of different calls together in a chain::
5353
5454 $view->setVar('one', $one)
@@ -62,7 +62,7 @@ When you pass data to the ``setVar()`` and ``setData()`` functions you have the
6262against cross-site scripting attacks. As the last parameter in either method, you can pass the desired context to
6363escape the data for. See below for context descriptions.
6464
65- If you don't want the data to be escaped, you can pass `null ` or `raw ` as the final parameter to each function::
65+ If you don't want the data to be escaped, you can pass `` null `` or `` ' raw' ` ` as the final parameter to each function::
6666
6767 $view->setVar('one', $one, 'raw');
6868
@@ -78,7 +78,7 @@ Escaping Contexts
7878By default, the ``esc() `` and, in turn, the ``setVar() `` and ``setData() `` functions assume that the data you want to
7979escape is intended to be used within standard HTML. However, if the data is intended for use in Javascript, CSS,
8080or in an href attribute, you would need different escaping rules to be effective. You can pass in the name of the
81- context as the second parameter. Valid contexts are 'html', 'js', 'css', 'url', and 'attr'::
81+ context as the second parameter. Valid contexts are `` 'html' ``, `` 'js' ``, `` 'css' ``, `` 'url' `` , and `` 'attr' `` ::
8282
8383 <a href="<?= esc($url, 'url') ?>" data-foo="<?= esc($bar, 'attr') ?>">Some Link</a>
8484
@@ -152,8 +152,8 @@ Class Reference
152152
153153 $view->setData(['name'=>'George', 'position'=>'Boss']);
154154
155- Supported escape contexts: html, css, js, url, or attr or raw.
156- If 'raw', no escaping will happen.
155+ Supported escape contexts: `` html ``, `` css ``, `` js ``, `` url `` , or `` attr `` or `` raw `` .
156+ If `` 'raw' `` , no escaping will happen.
157157
158158 Each call adds to the array of data that the object is accumulating,
159159 until the view is rendered.
@@ -171,8 +171,8 @@ Class Reference
171171
172172 $view->setVar('name','Joe','html');
173173
174- Supported escape contexts: html, css, js, url, attr or raw.
175- If 'raw', no escaping will happen.
174+ Supported escape contexts: `` html ``, `` css ``, `` js ``, `` url ``, `` attr `` or `` raw `` .
175+ If `` 'raw' `` , no escaping will happen.
176176
177177 If you use the a view data variable that you have previously used
178178 for this object, the new value will replace the existing one.
0 commit comments