Revert unescape in docs processing (#1847)

This commit is contained in:
Greg Kaleka
2025-07-16 16:39:42 -04:00
committed by GitHub
parent ea501cba90
commit c62bad1f2d
2 changed files with 1 additions and 2 deletions

View File

@@ -1,5 +1,4 @@
import re
from html import unescape
from bs4 import BeautifulSoup, Comment, Tag
from django.template.loader import render_to_string
@@ -260,7 +259,6 @@ def slightly_modernize_legacy_library_doc_page(content):
el.getparent().remove(el)
content = html.tostring(root, encoding="unicode", method="html")
content = unescape(content) # avoid escaping special characters like ń
return content.replace("https://www.boost.org/doc/libs/", "/doc/libs/")

View File

@@ -471,6 +471,7 @@ NO_WRAPPER_LIBS = [
# Add a header to these, but no wrapper.
"libs/array",
"libs/assert",
"libs/bloom",
"libs/charconv",
"libs/cobalt",
"libs/compat",