Q695 Posted February 10, 2014 Share Posted February 10, 2014 (edited) Does anyone know what to do to fix this: <textarea name='_____'><p>______</p></textarea> The errors I'm getting is: missing </textarea> before <p> discarding unexpected </textarea> Edited February 10, 2014 by Q695 Quote Link to comment https://forums.phpfreaks.com/topic/286093-tiny-mce-html-validation/ Share on other sites More sharing options...
kicken Posted February 10, 2014 Share Posted February 10, 2014 If you want to output HTML into a textarea as content, you need to escape eg. Eg, output: <textarea><p>____</p></textarea> Quote Link to comment https://forums.phpfreaks.com/topic/286093-tiny-mce-html-validation/#findComment-1468400 Share on other sites More sharing options...
Q695 Posted February 14, 2014 Author Share Posted February 14, 2014 How do you set up tiny MCE to output the code that way? Quote Link to comment https://forums.phpfreaks.com/topic/286093-tiny-mce-html-validation/#findComment-1468835 Share on other sites More sharing options...
josh1600 Posted February 22, 2014 Share Posted February 22, 2014 I am unsure If I have understood your issue correctly, but I would suggest heading to your plugins section, then go into the TINY MCE Editor configuration and replace the excluded formats to something random. I am wondering what you are trying to achieve with that snippet of HTML, perhaps you could share more info? Quote Link to comment https://forums.phpfreaks.com/topic/286093-tiny-mce-html-validation/#findComment-1470072 Share on other sites More sharing options...
Q695 Posted March 3, 2014 Author Share Posted March 3, 2014 ran tinyMCE on a form submitted it to the database pulled the data back to the form the HTML didn't validate properly when pulled from the database Quote Link to comment https://forums.phpfreaks.com/topic/286093-tiny-mce-html-validation/#findComment-1471301 Share on other sites More sharing options...
Augury Posted March 3, 2014 Share Posted March 3, 2014 I think it's saying you can't have <p> inside of the textarea tags. <textarea name="" rows="" cols="" value=""></textarea> Quote Link to comment https://forums.phpfreaks.com/topic/286093-tiny-mce-html-validation/#findComment-1471322 Share on other sites More sharing options...
Q695 Posted March 3, 2014 Author Share Posted March 3, 2014 Then Why does tiny MCE do it? Quote Link to comment https://forums.phpfreaks.com/topic/286093-tiny-mce-html-validation/#findComment-1471347 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.