1

I have a javascript document.write function that returns a textarea value to a field like so:

    <script type=\"text/javascript\">
   document.write(opener.document.msg.message.value)
</script>

Now, I need the output of what is returned from the document.write part to be in BBCode output, so if the value fetched from the document.write function is [b]hello[/b], it returns "hello" not [b]hello[/b]. Any help would be extremely appreciated!

1 Answer 1

1

Solved with javascript replace() function

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.