Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8323531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:44:47+00:00 2026-06-08T23:44:47+00:00

I have seen other questions asked on this topic, here on SO as well

  • 0

I have seen other questions asked on this topic, here on SO as well as other sites, but I have not been able to find a solution. I am using TinyMCE to allow the user to enter formatted text. There is a Save button which makes an Ajax call using JQuery and uploads the textarea contents to the server, where it is stored as html in the database.

Later, when the user comes back to the page, I want to display the formatted text that they entered previously. So, when the page loads, the html is stored in a hidden column of a DataTable. The TinyMCE textarea does not exist when the page loads, it is constructed dynamically using JQuery when the user clicks a button. The JQuery script copies the html from the hidden table cell into the textarea, and I call TinyMCE, again using the JQuery plugin, to convert the textarea to a TinyMCE editor.

The problem is that the TinyMCE editor displays the saved html, including the html tags. For example:

<p>Saved text</p>

I do not want it to display the html tags, I want it to format the text accordingly. How do I fix this? Any and all help is appreciated.

An abbreviated version of my javascript code:

$('img').live('click', function() {

    // Copy the html into the textarea.
    $(this).closest('tr').next().find('textarea').val(gData[id].comments);

    // Convert the textarea into an editor.
    $(this).closest('tr').next().find('textarea').tinymce({

        // Location of TinyMCE script
        script_url : 'js/tiny_mce/tiny_mce.js',

        theme : "simple"
    });
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:44:49+00:00Added an answer on June 8, 2026 at 11:44 pm

    You are displaying encoded version of the tags on the client side.

    Therefore tinyMCE sees them as encoded and displays them as such.

    For example:

    It sees: &lt;p&gt; ===> <p>

    Or &lt;p&gt;Saved text&lt;/p&gt; ===> <p>Saved text</p>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen other questions on here related to this, but I have their
I have seen this question asked previously but can not find a clear explanation
i have seen other blogs and SO questions relating to this issue but none
I have seen some of the other answers on this topic but dont really
I haven't seen any other questions quite like this on here, but I'm hoping
I have seen this question asked a few times but I have not seen
I have seen the other questions and reviewed the documentation, but I have not
I have seen some other questions about this but the errors were related to
I googled,I binged,I already have seen the other duplicates here,but none of them work
I have seen other people questions but found none that applied to what I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.