How to set the initial text in a TinyMCE textarea?

前端 未结 9 560
慢半拍i
慢半拍i 2021-01-02 07:31

I\'m in a curious situation where I previously had no problem achieving what I\'m looking for. The following code is a part of an HTML page which is to host a TinyMCE rich t

9条回答
  •  自闭症患者
    2021-01-02 07:46

    Given that the presence of

    tags causes the transformation, I suspect that your HTML ends up looking like:

    ...
    
    ...
    

    Unfortunately, HTML elements aren't technically allowed inside ...

    Using PHP, this can be done by sending your value through htmlspecialchars() before echoing it to the page.

提交回复
热议问题