Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guides/v2.0/frontend-dev-guide/templates/template-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ For the following output cases, use the specified function to generate XSS-safe
{% endhighlight %}

**Case:** URL output\\
**Function:** `escapeXssInUrl`
**Function:** `escapeUrl`

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

**Case:** HTML attributes\\
Expand Down