Skip to content

Commit

Permalink
Fix: Use striptags for page title to preserve ampersand (django-cms/d…
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Apr 9, 2024
1 parent 8754e88 commit c746272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_frontend/templates/djangocms_frontend.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta property="og:url" content="{{ request.build_absolute_uri|urlencode:"&?" }}"/>
{% endblock canonical_url %}
{% block fb_meta %}{% endblock fb_meta %}
<title>{% block title %}{% page_attribute "page_title" %}{% endblock %}</title>
<title>{% block title %}{{ request.current_page.get_page_title|striptags }}{% endblock %}</title>
{% block base_css %}{% endblock %}
{% endspaceless %}{% render_block 'css' %}{% spaceless %}
{% block page_head %}{% endblock %}
Expand Down

0 comments on commit c746272

Please sign in to comment.