I found out if the HTML code is not coming from the views folder, the framework will convert my html code to text only. How about my HTML code from different source like database, or other model. How can I display the HTML code at web page ?
The architectural design of FuelPHP is "encode on output", and not like most other frameworks, "strip on input". We assume that all data send to the browser is unsafe, unless you say otherwise.
There are several ways to to that: - use the set() method of the View object, and set the filter flag to false - use the set_safe() method of the View object, which is an alias of the above - if you use custom HTML objects, you can whitelist them in the config
View, Viewmodel, Presenter and Closure's are automatically whitelisted.