Skip to content

AO3-3464 HTML parser eats text after a missing quote upon preview or posting#5828

Open
forceofcalm wants to merge 9 commits into
otwcode:masterfrom
forceofcalm:AO3-3464
Open

AO3-3464 HTML parser eats text after a missing quote upon preview or posting#5828
forceofcalm wants to merge 9 commits into
otwcode:masterfrom
forceofcalm:AO3-3464

Conversation

@forceofcalm
Copy link
Copy Markdown
Contributor

@forceofcalm forceofcalm commented May 20, 2026

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-3464

Purpose

Previously, an open quote in an HTML tag attribute would cause Nokogiri to "eat" the rest of the tag and its text until it found another quote or some other delimiter, sometimes resulting in a significant loss of user work. This change should sanitize any "loose" open quotes and intelligently find and add the closing quote to prevent this loss.

Testing Instructions

I have added tests, but this should also be tested manually in new/edit/preview works and in comments.

Credit

calm (they/them)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant