mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-09 17:42:19 +00:00
rss: strip <svg>...</svg> elements
This commit is contained in:
parent
f51fc36b6d
commit
4286612406
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
|||
<guid>{{ .Permalink }}</guid>
|
||||
{{- $content := replaceRE "a href=\"(#.*?)\"" (printf "%s%s%s" "a href=\"" .Permalink "$1\"") .Content -}}
|
||||
{{- $content = replaceRE "img src=\"(.*?)\"" (printf "%s%s%s" "img src=\"" .Permalink "$1\"") $content -}}
|
||||
{{- $content = replaceRE "<svg.*</svg>" "" $content -}}
|
||||
<description>{{ $content | html }}</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue