https://bugzilla.wikimedia.org/show_bug.cgi?id=34678
Web browser: ---
Bug #: 34678
Summary: New Hook: "InternalParseBeforeSanitize"
Product: MediaWiki
Version: 1.19
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Parser
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 10085
--> https://bugzilla.wikimedia.org/attachment.cgi?id=10085
adds a new hook 'InternalParseBeforeSanitize' to the parser
I am in need for a new hook, making it possible to change parser output before
it goes to the sanitizer. This is the second extension I am working on which
would profit from this.
The first time I was able to build around this by using
'InternalParseBeforeLinks' hook, calling Sanitizer::removeHTMLtags() manually
on the newly inserted stuff. Now I had to run the whole sanitizer on the whole
text for a second time.
I guess calling the sanitizer just once would be faster and the new hook would
be more suitable for extension development. One suitable name could be
'InternalParseBeforeSanitize'. See my patch for details.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l