Posted by federico on October 26, 2009 at 4:08am
Jump to:
| Project: | HTML Purifier |
| Version: | 5.x-1.4 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
Hello, I'm using a wysiwyg editor (jWYSIWYG 0.5 with WYSIWYG module), this editor adds uppercase tags, i thought HTML Purifier transformed uppercase tags to lowercase tag, but I tried this and it didn't.
Am I missing something or is this not a feature?
I tried placing HTML Purifier filter first and last in filter list.
Thanks,
Federico
Comments
#1
Ok, I was wrong, It does transform uppercase tag to lowercase tags, but when you look at a node/comment, not when you save it. For performance reason, I think it would be great to filter tags before the user saves the content, and not when the visitor sees it.
#2
Apologies for the really late response.
You can use the "HTML Purifier double-cache" feature to do essentially this. It's not desirable to implement the functionality as you describe it because then you lose data: i.e. you can not get the original HTML the user submitted anymore.