Menu

how to not remove mailto: from <a href></a>

Help
2008-11-04
2013-04-08
  • Gregor Leban

    Gregor Leban - 2008-11-04

    Hi,

    I'm not an expert in kses so I would ask you for some help. I need to know how do I have to define the $allowed array before calling kses in order for kses to allow me to have something like:

    send <a href="mailto:name@yahoo.com">via email</a>

    Using my current $allowed array I now get:

    send <a href="name@yahoo.com">via email</a>

    Thank you very much for your help...

    Regards,
    gregor

     
    • Gregor Leban

      Gregor Leban - 2008-11-04

      I found the solution myself,

      I should have specified 'mailto' in the allowed protocols array (the third argument in the kses function).

      Regards,
      Gregor

       

Log in to post a comment.