mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
Revert unescape in docs processing (#1847)
This commit is contained in:
@@ -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/")
|
||||
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user