Relaxes previous REGEXPs to make them match more HTML tags usages

This commit is contained in:
Samuel FORESTIER
2020-03-19 16:37:30 +01:00
parent a4f115b287
commit 9fc2e6b8b7
2 changed files with 4 additions and 4 deletions

@ -27,8 +27,8 @@ regenerate: true
{%- unless post.draft %}
{%- capture post_content -%}
{{ post.content |
re_substitute: '<\bscript\b.+?>.+?<\/\bscript\b>', '' |
re_substitute: '<\biframe\b.+?>.+?<\/\biframe\b>', ''
re_substitute: '<\bscript\b.*>.*<\/\bscript\b>', '' |
re_substitute: '<\biframe\b.*>.*<\/\biframe\b>', ''
}}
{%- endcapture -%}
<entry>

@ -17,8 +17,8 @@ regenerate: true
"items": [{% for post in site.posts limit: site.feed.limit %}{% unless post.draft %}
{%- capture post_content -%}
{{ post.content |
re_substitute: '<\bscript\b.+?>.+?<\/\bscript\b>', '' |
re_substitute: '<\biframe\b.+?>.+?<\/\biframe\b>', ''
re_substitute: '<\bscript\b.*>.*<\/\bscript\b>', '' |
re_substitute: '<\biframe\b.*>.*<\/\biframe\b>', ''
}}
{%- endcapture -%}
{