Drupal's "Input Formats" & HTML

Discussion in 'Drupal' started by RogerDodgr, Apr 15, 2010.

  1. #1
    I want an input format that does not change anything. I mean to say, I want to be able to write HTML code into a Drupal's standard editor just like I was writing HTML into a text file.

    For every-day use, I do use the "Full HTML" or "Filtered HTML". But, there are time when I want complete control of the HTML and also enter javascript.

    Is this possible? Is there an option that does not change anything?
     
    RogerDodgr, Apr 15, 2010 IP
  2. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #2
    Yes, it's the PHP input format. Before it was available out of the box, now you have to enable it in the core optional modules, php iflter.
    That's the best one because even the full html replace a line return with a BR.
     
    JamesColin, Apr 16, 2010 IP
  3. JimmieS

    JimmieS Peon

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for that tip! I would rather have control over my content because the filtering always messes something up. Using PHP input format, will users who don't know html be able to work with that, or should I just use it for my own purposes?
     
    JimmieS, Apr 19, 2010 IP
  4. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #4
    Use it only for you! Don't allow anyone to be able to write php on your site!
     
    JamesColin, Apr 19, 2010 IP
  5. Javed iqbal

    Javed iqbal Well-Known Member

    Messages:
    445
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #5
    yes php filter is best for it,
     
    Javed iqbal, Apr 19, 2010 IP
  6. JimmieS

    JimmieS Peon

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks wwwSENSERLYcom. I haven't tried it yet as I'm just finishing up with the basic buildup and tweaking of my drupal site. I will get around to it soon though.
     
    JimmieS, Apr 20, 2010 IP