HTML tags are not saving properly in database when trying to save while API which create problem while show data in TinyMCE editor
06:27 05 Dec 2025

We have application, where we are saving data into the table by using API call or by using UI where we have used TinyMCE editor. We are using one stored procedure to save the data into the SQL table. We are passing whatever entered in TinyMCE editor controller as a XML to the stored procedure. By using editor, we are able to save data HTML tags properly and also retrieve that data in proper format and it is visible in proper format on TinyMCE editor controller, but whenever we are trying to save data into the SQL table by calling API, the data of the format is not proper, I mean the HTML tags are not saving properly. < and > tags are converting into the < and > due to which when I am retrieving data on UI in TinyMCE editor controller, it shows < and > instead of proper HTML format.

Below is the text which stored if I pass data by using UI.
enter image description here
Below is the text which stored if I pass data by using API.
enter image description here

So is there any TinyMCE backend Nuget package in .Net framework which will convert data into the proper format when I send it through the API and also display it in proper format on UI.

javascript html asp.net sql-server tinymce