Page MenuHomePhabricator

textlib.removeHTMLParts() function should remove <style>...</style> tags
Closed, ResolvedPublicFeature

Description

textlib.removeHTMLParts() function should remove <style>...</style> tags because anly css settings are made there and no content is placed there. The intention of the function is to return text html and wiki tags.

Event Timeline

Xqt triaged this task as Medium priority.Jul 13 2025, 9:14 AM
Xqt changed the subtype of this task from "Task" to "Feature Request".
Xqt moved this task from Backlog to Improvements on the Pywikibot-textlib board.

Change #1168618 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] textlib: refactor HTML removal logic using GetDataHTML parser

https://gerrit.wikimedia.org/r/1168618

Change #1168618 merged by jenkins-bot:

[pywikibot/core@master] textlib: refactor HTML removal logic using GetDataHTML parser

https://gerrit.wikimedia.org/r/1168618