-
Notifications
You must be signed in to change notification settings - Fork 38
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
Allow way for hoooks like pre_format_html_hook to know the content-type or other headers before deciding how to rewrite HTML (or non-HTML) #356
Comments
Cannot reproduce it. I can see |
I think this is because I have? HTML rewriting with Python. It assumes the content type is HTML and escapes it.
How do I check for content type in hooks before rewriting?
Dion Moult
Sent from Proton Mail Android
…-------- Original Message --------
On 9/1/25 3:22 am, rkd77 wrote:
Cannot reproduce it. I can see Level 51: <- You were here. without entities.
—
Reply to this email directly, [view it on GitHub](#356 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAVR3V4CC6ZNU5VAKJHB6T2JVGD3AVCNFSM6AAAAABUYXCNPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZYGA4DONJSGM).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
AFAIK, there is no such feature. There was an idea to read headers as API call, and set arbitrary headers as another API call, but no code yet. |
OK I added this as a temporary workaround:
However what about this inverse issue? #356 (comment) |
Yes, libdom converted |
Visit https://au.hardfought.org/userdata/M/Moult/nethack/dumplog/1734863710.nh.txt and you'll see the
<-- You were here
text appear like this:<- You were here
.The text was updated successfully, but these errors were encountered: