Skip to content

Commit fec61fb

Browse files
committed
docs: change text decration
Code is decorated with '``'.
1 parent 714235b commit fec61fb

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

user_guide_src/source/outgoing/view_parser.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ can instantiate it directly::
5353
$parser = new \CodeIgniter\View\Parser();
5454

5555
Then 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

6060
Using the ``Parser``, your view templates are processed only by the Parser
6161
itself, and not like a conventional view PHP script. PHP code in such a script
@@ -221,12 +221,12 @@ method::
221221
->render('blog_template');
222222

223223
If 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,
225225
that 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
227227
an 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
230230
that returns all public and protected properties (minus the _options property) and
231231
makes 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

268268
Comments
269269
========
@@ -362,9 +362,9 @@ of the comparison operators you would normally, like ``==``, ``===``, ``!==``, `
362362
Escaping 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()``
368368
filter::
369369

370370
{ user_styles | esc(css) }

0 commit comments

Comments
 (0)