Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 997161f

Browse files
author
Tana M Berry
authored
Merge pull request #899 from avoelkl/patch-3
Change escapeXssInUrl to escapeUrl
2 parents 78171ad + 85b14ba commit 997161f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/v2.0/frontend-dev-guide/templates/template-security.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ For the following output cases, use the specified function to generate XSS-safe
6565
{% endhighlight %}
6666

6767
**Case:** URL output\\
68-
**Function:** `escapeXssInUrl`
68+
**Function:** `escapeUrl`
6969

7070
{% highlight html %}
71-
<a href="<?php echo $block->escapeXssInUrl($block->getCategoryUrl()) ?>">Some Link</a>
71+
<a href="<?php echo $block->escapeUrl($block->getCategoryUrl()) ?>">Some Link</a>
7272
{% endhighlight %}
7373

7474
**Case:** HTML attributes\\

0 commit comments

Comments
 (0)