Tinymce

Discussion in 'PHP' started by Hannaspice, Jan 8, 2009.

  1. #1
    Hi I have just a question,

    After I submit the text typing in textarea with tinymce, in my phpmyadmin there always have <p>text</p>. My question is: how could I delete "<p>" while I submit the text?I heard something like "censor", but I didn't manage to do with it.

    If somebody has another idea, tell me pls(of course in details:D).

    Many thanx.
     
    Hannaspice, Jan 8, 2009 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Str_replace
    Strtr
    Substr
    Preg_replace (unrecommended.)
    Strip_tags

    All would work fine, or you could edit the script so <p></p> aren't put in, I've not looked into tinyMCE so I can't help particularly, but all these would suffice.
     
    Danltn, Jan 8, 2009 IP