We have a custom chat filter which makes use of a third party to filter the message string. When I retrieve the message parameter in the PubMsg event (ieo.getParam("msg"), if the chat contains special characters it will be 'escaped' to some ascii coding or something. For example, the apostrophe appears as '.
Is there some easy way to translate that back to the apostrophe character, and if I do so, will it cause a problem when I dispatch the message after handling the event?
Special Characters in Chat Filter
dots in chat filter bad words
Does not really have to do with the preceding post, but the topic matches nicely...
I would like to filter URLs so I added "http", ".com" and some others as bad words. Unfortunately the ones starting with a "." do not seem to work.
Is there workaround?
I would like to filter URLs so I added "http", ".com" and some others as bad words. Unfortunately the ones starting with a "." do not seem to work.
Is there workaround?