Jump to content


Photo

Tiny MCE HTML validation


  • Please log in to reply
6 replies to this topic

#1 Q695

Q695

    Advanced Member

  • Members
  • PipPipPip
  • 720 posts
  • LocationEarth

Posted 10 February 2014 - 11:54 AM

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 by Q695, 10 February 2014 - 11:56 AM.

if ($problem==mark_solved){

solution ($problem);}

 

if ($skill_level==learning && $my_knowledge==the_required_level_of_knowledge){

     echo "I will try to help, because you're still $skill_level , and my skill level is at $my_knowledge";

} else {

     echo "I can't help you, go away.";

}


#2 kicken

kicken

    Wiser? Not exactly.

  • Gurus
  • 2,708 posts
  • LocationBonita, FL

Posted 10 February 2014 - 11:57 AM

If you want to output HTML into a textarea as content, you need to escape eg. Eg, output:
<textarea>&lt;p&gt;____&lt;/p&gt;</textarea>

Recycle your old CD's, don't trash them!
Did I help you out?  Feeling generous? I accept tips via Paypal or Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7

#3 Q695

Q695

    Advanced Member

  • Members
  • PipPipPip
  • 720 posts
  • LocationEarth

Posted 13 February 2014 - 10:21 PM

How do you set up tiny MCE to output the code that way?


if ($problem==mark_solved){

solution ($problem);}

 

if ($skill_level==learning && $my_knowledge==the_required_level_of_knowledge){

     echo "I will try to help, because you're still $skill_level , and my skill level is at $my_knowledge";

} else {

     echo "I can't help you, go away.";

}


#4 josh1600

josh1600

    Newbie

  • New Members
  • Pip
  • 7 posts

Posted 22 February 2014 - 11:01 AM

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?



#5 Q695

Q695

    Advanced Member

  • Members
  • PipPipPip
  • 720 posts
  • LocationEarth

Posted 03 March 2014 - 02:02 AM

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


if ($problem==mark_solved){

solution ($problem);}

 

if ($skill_level==learning && $my_knowledge==the_required_level_of_knowledge){

     echo "I will try to help, because you're still $skill_level , and my skill level is at $my_knowledge";

} else {

     echo "I can't help you, go away.";

}


#6 Augury

Augury

    Advanced Member

  • Members
  • PipPipPip
  • 98 posts

Posted 03 March 2014 - 09:47 AM

I think it's saying you can't have <p> inside of the textarea tags.  

 

<textarea name="" rows="" cols="" value=""></textarea>



#7 Q695

Q695

    Advanced Member

  • Members
  • PipPipPip
  • 720 posts
  • LocationEarth

Posted 03 March 2014 - 01:58 PM

Then Why does tiny MCE do it?


if ($problem==mark_solved){

solution ($problem);}

 

if ($skill_level==learning && $my_knowledge==the_required_level_of_knowledge){

     echo "I will try to help, because you're still $skill_level , and my skill level is at $my_knowledge";

} else {

     echo "I can't help you, go away.";

}





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com