Skip to content

Commit b5cc63a

Browse files
authored
Unescape special characters (boostorg#1839)
1 parent e93718d commit b5cc63a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/htmlhelper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import re
2+
from html import unescape
23

34
from bs4 import BeautifulSoup, Comment, Tag
45
from django.template.loader import render_to_string
@@ -259,6 +260,7 @@ def slightly_modernize_legacy_library_doc_page(content):
259260
el.getparent().remove(el)
260261

261262
content = html.tostring(root, encoding="unicode", method="html")
263+
content = unescape(content) # avoid escaping special characters like ń
262264
return content.replace("https://www.boost.org/doc/libs/", "/doc/libs/")
263265

264266

0 commit comments

Comments
 (0)