Skip to content

Commit

Permalink
sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
clarklab committed Feb 3, 2025
1 parent 978f713 commit dfe883a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion search.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
{% if post.tags %}"tags" : "{% for tag in post.tags %}{{ tag | escape }} {% endfor %}",{% endif %}
"image" : "{{ site.baseurl }}/images/{{ post.image }}",
"url" : "{{ site.baseurl }}{{ post.url }}",
"description" : "{{ post.content }}"
"description": "{{ post.content | strip_html | replace: '"', '' | replace: "'", '' | strip_newlines }}"


} {% unless forloop.last %},{% endunless %}
{% endfor %}
Expand Down
3 changes: 2 additions & 1 deletion trmnl.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
{% if post.tags %}"tags" : "{% for tag in post.tags %}{{ tag | escape }} {% endfor %}",{% endif %}
"image" : "{{ site.baseurl }}/images/{{ post.image }}",
"url" : "{{ site.baseurl }}{{ post.url }}",
"description" : "{{ post.content }}"
"description": "{{ post.content | strip_html | replace: '"', '' | replace: "'", '' | strip_newlines }}"


} {% unless forloop.last %},{% endunless %}
{% endfor %}
Expand Down

0 comments on commit dfe883a

Please sign in to comment.