mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Merge commit '346b60358dd8ec2ca228e6635bff9d7914b398b7'
This commit is contained in:
@@ -26,9 +26,9 @@ aliases: [/functions/safecss]
|
||||
Use the `safe.CSS` function to encapsulate known safe content that matches any of:
|
||||
|
||||
1. The CSS3 stylesheet production, such as `p { color: purple }`.
|
||||
2. The CSS3 rule production, such as `a[href=~"https:"].foo#bar`.
|
||||
3. CSS3 declaration productions, such as `color: red; margin: 2px`.
|
||||
4. The CSS3 value production, such as `rgba(0, 0, 255, 127)`.
|
||||
1. The CSS3 rule production, such as `a[href=~"https:"].foo#bar`.
|
||||
1. CSS3 declaration productions, such as `color: red; margin: 2px`.
|
||||
1. The CSS3 value production, such as `rgba(0, 0, 255, 127)`.
|
||||
|
||||
Use of this type presents a security risk: the encapsulated content should come from a trusted source, as it will be included verbatim in the template output.
|
||||
|
||||
|
Reference in New Issue
Block a user