KubeR Posted September 18, 2013 Share Posted September 18, 2013 Hi, I want to create a cancel button which replaces back the text that was after clicking the "cancel" button. But the problem is,that the tags does not take affect when I use .html() to restore the previous content with all the tags that it had,they show as plain text. I searched for alternative function or way,but didn't find any. So,my question is : is there any command that can filter the html and make the tags work properly with all the attributes they contain ? Before the hand, thank you, KubeR. Link to comment https://forums.phpfreaks.com/topic/282261-filtering-html-with-jqueryjs/ Share on other sites More sharing options...
KubeR Posted September 19, 2013 Author Share Posted September 19, 2013 Okay the problem is fixed,the solution was very simple actually,all I had to do is instead of using .html to excute the text from the textarea is use .val haven't realized it because it was between the tags and not in the "value" attribute. Link to comment https://forums.phpfreaks.com/topic/282261-filtering-html-with-jqueryjs/#findComment-1450237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.