tinymce get HTML code when postback

前端 未结 8 697
醉话见心
醉话见心 2020-12-18 06:26

I have the tinymce -control as a WYSIWYG-Editior in my asp.net page.

When I have e.g. a Text in Bold, after the Postback it is shown as

 \"

8条回答
  •  猫巷女王i
    2020-12-18 07:17

    You can use this code for solving your problem:

    TextAreaID.Text = Server.HtmlDecode("

    hello

    ");

    I found it in this post : https://stackoverflow.com/a/8029637/1509986

    If you get some security errors you can use

    validateRequest="false"
    

    in your page.

提交回复
热议问题