我有一个 javascript document.write 函数,它将一个 textarea 值返回到一个字段,如下所示:
<script type=\"text/javascript\">
document.write(opener.document.msg.message.value)
</script>
现在,我需要从 document.write 部分返回的输出在 BBCode 输出中,所以如果从 document.write 函数获取的值是 [b]hello[/b],它返回“ hello ”而不是 [ b]你好[/b]。任何帮助将不胜感激!