Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on how bs4 handles &dash #1

Open
smirolo opened this issue Mar 17, 2015 · 1 comment
Open

Issue on how bs4 handles &dash #1

smirolo opened this issue Mar 17, 2015 · 1 comment
Assignees
Labels

Comments

@smirolo
Copy link
Contributor

smirolo commented Mar 17, 2015

If you add do the following in pages/views.py:

  def get(self, request, *args, **kwargs):#pylint: disable=too-many-statements, too-many-locals
      response = super(PageView, self).get(request, *args, **kwargs)
-     if self.template_name and isinstance(response, TemplateResponse):
+    if False and self.template_name and isinstance(response, TemplateResponse):

The &dash is rendered correctly.

@smirolo smirolo assigned smirolo and StephaneRob and unassigned smirolo Mar 17, 2015
@smirolo smirolo assigned rene-armida and unassigned StephaneRob Apr 17, 2015
@smirolo
Copy link
Contributor Author

smirolo commented Apr 17, 2015

@marmida comment: This is apparently because of our use of proxies, which causes the content on pages to go through a pass-through, and that causes a second round of HTML entity encoding that isn't being handled correctly. Investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants