mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
committed by
Bjørn Erik Pedersen
parent
ef12d169c8
commit
b4c5df42ff
@@ -112,6 +112,16 @@ func init() {
|
||||
},
|
||||
)
|
||||
|
||||
ns.AddMethodMapping(ctx.XMLEscape,
|
||||
nil,
|
||||
[][2]string{
|
||||
{
|
||||
`{{ transform.XMLEscape "<p>abc</p>" }}`,
|
||||
`<p>abc</p>`,
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
return ns
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user