@@ -53,9 +53,9 @@ can instantiate it directly::
5353 $parser = new \CodeIgniter\View\Parser();
5454
5555Then you can use any of the three standard rendering methods that it provides:
56- ** render(viewpath, options, save) **, ** setVar(name, value, context) ** and
57- ** setData(data, context) ** . You will also be able to specify delimiters directly,
58- through the ** setDelimiters(left, right) ** method.
56+ `` render(viewpath, options, save) ``, `` setVar(name, value, context) `` and
57+ `` setData(data, context) `` . You will also be able to specify delimiters directly,
58+ through the `` setDelimiters(left, right) `` method.
5959
6060Using the ``Parser ``, your view templates are processed only by the Parser
6161itself, and not like a conventional view PHP script. PHP code in such a script
@@ -221,12 +221,12 @@ method::
221221 ->render('blog_template');
222222
223223If the array you are trying to loop over contains objects instead of arrays,
224- the parser will first look for an ``asArray `` method on the object. If it exists,
224+ the parser will first look for an ``asArray() `` method on the object. If it exists,
225225that method will be called and the resulting array is then looped over just as
226- described above. If no ``asArray `` method exists, the object will be cast as
226+ described above. If no ``asArray() `` method exists, the object will be cast as
227227an array and its public properties will be made available to the Parser.
228228
229- This is especially useful with the Entity classes, which has an asArray method
229+ This is especially useful with the Entity classes, which has an `` asArray() `` method
230230that returns all public and protected properties (minus the _options property) and
231231makes them available to the Parser.
232232
@@ -262,8 +262,8 @@ A **blog_template.php** that might work for the above::
262262 </div>
263263 {/blog_entry}
264264
265- If you would like the other pseudo-variables accessible inside the " blog_entry"
266- scope, then make sure that the " cascadeData" option is set to true.
265+ If you would like the other pseudo-variables accessible inside the `` blog_entry ``
266+ scope, then make sure that the `` cascadeData `` option is set to true.
267267
268268Comments
269269========
@@ -362,9 +362,9 @@ of the comparison operators you would normally, like ``==``, ``===``, ``!==``, `
362362Escaping Data
363363=============
364364
365- By default, all variable substitution is escaped to help prevent XSS attacks on your pages. CodeIgniter's ``esc `` method
366- supports several different contexts, like general ** html ** , when it's in an HTML ** attr ** , in ** css ** , etc. If nothing
367- else is specified, the data will be assumed to be in an HTML context. You can specify the context used by using the ** esc **
365+ By default, all variable substitution is escaped to help prevent XSS attacks on your pages. CodeIgniter's ``esc() `` method
366+ supports several different contexts, like general `` html `` , when it's in an HTML `` attr `` , in `` css `` , etc. If nothing
367+ else is specified, the data will be assumed to be in an HTML context. You can specify the context used by using the `` esc() ``
368368filter::
369369
370370 { user_styles | esc(css) }
0 commit comments