Skip to content

Commit 1f98cce

Browse files
committed
docs: use :php:func:
1 parent 2abd7b8 commit 1f98cce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/tutorial/news_section.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ and add the next piece of code.
144144

145145
.. literalinclude:: news_section/005.php
146146

147-
.. note:: We are again using using ``esc()`` to help prevent XSS attacks.
147+
.. note:: We are again using using :php:func:`esc()` to help prevent XSS attacks.
148148
But this time we also passed "url" as a second parameter. That's because
149149
attack patterns are different depending on the context in which the output
150-
is used. You can read more about it :doc:`here </general/common_functions>`.
150+
is used.
151151

152152
Here, each news item is looped and displayed to the user. You can see we
153153
wrote our template in PHP mixed with HTML. If you prefer to use a template

0 commit comments

Comments
 (0)