I want to allow my user to insert special characters in the message field.
For example: →
I use the same JavaScript from the vBCode Smilies:
function zeichen(thezeichen) {
// inserts zeichen text
document.vbform.message.value += thezeichen+" ";
document.vbform.message.focus();
}
And for the clickable special character:
<a href="javascript:zeichen('→')">→</a>
When I click on the character it is inserted as an arrow not as HTML-Code into the messsage field. When i submit the message the arrow is replaced by: ©
When I insert
manually into the message field, it is displayed correctly after submitting.
How can I fix the Problem? It is very important for me, because I have a scientific forum and not all of the user knows HTML.
For example: →
I use the same JavaScript from the vBCode Smilies:
function zeichen(thezeichen) {
// inserts zeichen text
document.vbform.message.value += thezeichen+" ";
document.vbform.message.focus();
}
And for the clickable special character:
<a href="javascript:zeichen('→')">→</a>
When I click on the character it is inserted as an arrow not as HTML-Code into the messsage field. When i submit the message the arrow is replaced by: ©
When I insert
PHP Code:
→
How can I fix the Problem? It is very important for me, because I have a scientific forum and not all of the user knows HTML.
Comment