Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Selective output filtering
  • Hi, I read the doc about doing selective output filtering, but I can't make it work. 
    Here is what I wan't to do : 

    I'm doing a website where people will be able to post various content on their wall (kind of like Facebook). I would like to keep my website safe by filtering the content, but I would also like to be able to let people post link and then transform these links in html for other people to click on them. I know how to convert an url to a html link, my question is how do I pass these links to the view without getting filtered.

    Whats the best way to do this? BB code? Markdown? Config?

    I can't find the right way to do it.

    Thanks!
  • HarroHarro
    Accepted Answer
    You pass data to a view without encoding using the View objects set_safe() method, or with set() using false as third parameter.
  • Ok thanks a lot!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion