#9805 closed enhancement (duplicate)
a better unhtmlentities()
| Reported by: | Denis-de-Bernardy | Owned by: | westi |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Charset | Version: | 2.8 |
| Severity: | minor | Keywords: | has-patch tested early |
| Cc: | Focuses: |
Description
TinyMCE's Googlespell plugin contains a version of unhtmlentities that looks a little better than the one we currently use in the WP, RSS and Blogware importers.
Attachments (3)
Change History (14)
#2
@
17 years ago
- Keywords tested commit added; needs-testing removed
importer works fine with patch applied.
#3
@
17 years ago
- Component Import → Charset
- Keywords needs-testing early added; tested commit removed
- Milestone 2.8 → 2.9
re-assigning this to early 2.9, however, in case it has unexpected side effects.
#4
follow-up:
↓ 5
@
17 years ago
+1 for having the e modifier out there.
strtr() does not look as a fitting function to, this will lead to data-loss. str_replace should do the job instead.
#5
in reply to: ↑ 4
@
17 years ago
Replying to hakre:
strtr() does not look as a fitting function to, this will lead to data-loss. str_replace should do the job instead.
ignore that comment please, it's a mistake of mine.
#8
@
17 years ago
- Keywords tested added; needs-testing removed
- Milestone Future Release → 3.0
reviewed and tested the patch. works.
while we're at it, there was code duplication between the patched classes so that my patch adds a base_importer class which can be inherited to compact the code.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
the e regex modifier would probably need to be removed before this gets committed. some testing is in order before it's added either way.