Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h authored Jun 12, 2021
1 parent b221594 commit 1b16c39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ However, the `a` element's `href` attribute is treated differently. Templ expect

Templ provides a `templ.URL` function that sanitizes input URLs and checks that the protocol is http/https/mailto rather than `javascript` or another unexpected protocol.

```
<a href={%= templ.URL(p.URL) %}>{%= strings.ToUpper(p.Name()) %}</a>
```

### Text

Expand Down

0 comments on commit 1b16c39

Please sign in to comment.