Posted by G0ng on 10/25/05 09:45
Ewoud Dronkert wrote:
> G0ng wrote:
>
>>If I do <input type="text" value="<?php echo $line["text"];?>"> there is
>>a problem with the " in the html code. I trie to do a
>
>
> http://php.net/htmlspecialchars
>
Ok this is ok for the HTML part. It is displayed correctly. But what I
want to do is pass it to a javascript function. So I do
<script language="javascript">
var ed=new EDITOR();
ed.create(document.form.textfield.value)
</script>
but the .create function needs the argument to be <b> and not <b$gt;
Is there any other way to this DB field in my javascript?
thanks
Navigation:
[Reply to this message]
|