Relaxes previous REGEXPs to make them match more HTML tags usages
This commit is contained in:
4
atom.xml
4
atom.xml
@ -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 -%}
|
||||
{
|
||||
|
Reference in New Issue
Block a user