• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with parse_smileys and HTML entities

#1
[eluser]dmorin[/eluser]
Not sure if I'm just being dense or what but I'm not seeing an easy solution to this (I have a feeling I"m just being dense)...

I store all user input in the database escaped using xss_clean and htmlentites. Then, when I echo out certain fields, I use the parse_smileys function to generate the image tags. The problem occurs when someone uses an htmlentity character directly before a closed parenthesis such as
Quote:("TEST")
which I then translate to
Quote:("TEST&quotWink
which the parse_smileys function then interprets the last two characters to be a wink.

It doesn't appear that these forums are affected by this, so can someone help me out? If I parse_smileys before converting to entities, it'll screw up the image tags and if I wait until after, I get smileys in the wrong places.

Thanks in advance!


Messages In This Thread
Help with parse_smileys and HTML entities - by El Forum - 09-29-2008, 07:37 PM
Help with parse_smileys and HTML entities - by El Forum - 09-29-2008, 09:55 PM
Help with parse_smileys and HTML entities - by El Forum - 09-30-2008, 07:43 AM
Help with parse_smileys and HTML entities - by El Forum - 09-30-2008, 08:40 AM
Help with parse_smileys and HTML entities - by El Forum - 09-30-2008, 08:57 AM
Help with parse_smileys and HTML entities - by El Forum - 09-30-2008, 09:19 AM
Help with parse_smileys and HTML entities - by El Forum - 09-30-2008, 09:41 AM
Help with parse_smileys and HTML entities - by El Forum - 09-30-2008, 10:04 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.