Welcome to Geeklog, Anonymous Monday, December 30 2024 @ 04:11 am EST
Geeklog Forums
Mail Story to Friend - COM_undoSpecialChars
MJK
Anonymous
Hello,
Sorry that this is sort of a double post. I appended this to the end of a resolved thread from yesterday, and then realized that it should be it's own new thread.
When using the "Mail Story to a Friend", I'm seeing some characters that look like they're not being unencoded before they're emailed. Here is a sample of a sentence from the email:
When I look at profiles.php, which is sending the email, it appears that a function is being run to catch these characters - COM_undoSpecialChars. Here's the code from profiles.php. It's being run on the title, introtext and bodytext from the database.
. COM_undoSpecialChars(stripslashes(strip_tags($A['bodytext']))).LB.LB
Is there a reason why the “ ’ etc...are not being unencoded? I tried adding html_entity_decode, but that didn't seem to work.
I appreciate any help. Thanks.
Sorry that this is sort of a double post. I appended this to the end of a resolved thread from yesterday, and then realized that it should be it's own new thread.
When using the "Mail Story to a Friend", I'm seeing some characters that look like they're not being unencoded before they're emailed. Here is a sample of a sentence from the email:
“Ah, that’s an interesting clue, isn’t it? You’d have to be very highly placed in the LOC to know about that
When I look at profiles.php, which is sending the email, it appears that a function is being run to catch these characters - COM_undoSpecialChars. Here's the code from profiles.php. It's being run on the title, introtext and bodytext from the database.
Text Formatted Code
. COM_undoSpecialChars(stripslashes(strip_tags($A['bodytext']))).LB.LB
Is there a reason why the “ ’ etc...are not being unencoded? I tried adding html_entity_decode, but that didn't seem to work.
I appreciate any help. Thanks.
9
7
Quote
All times are EST. The time is now 04:11 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content