0

I use fat free framework and fuelux repeater. When I create an html element in controller files, I can't see the element in view. I realize what the problem it is, but I don't know the solution.

Checkbox in repeater

jmarkmurphy
  • 11,030
  • 31
  • 59
eneskomur
  • 91
  • 1
  • 13

1 Answers1

1

You have to print the raw HTML, since F3's template engine is automatically escaping it. Have a look at: https://fatfreeframework.com/3.6/views-and-templates#DataSanitation

Either use $f3->set('ESCAPE',FALSE); to disable escaping globally (not recommended) or add a filter in your template for the variable you want to keep unescaped like this: {{ @html_content | raw }}

sascha
  • 4,671
  • 3
  • 36
  • 54