Welcome Guest, Not a member yet? Register   Sign In
Twig validation_errors()
#1

[eluser]Unknown[/eluser]
Hi, I'm trying to use the validation_errors() function in the form_validation library in Twig by adding it with $this->twig->add_function('validation_errors');. Everything goes according to plan but I don't now why when the errors are display it gets the html tags as if where text too so instead of "Some text" it shows "<tag>Some text</tag>". If someone can help it will be most appreciated.

ANSWER: I fix the problem using the autoscape tag in twig like this {% autoescape false %}
#2

[eluser]Aken[/eluser]
The validation_errors() function itself returns HTML and text. Read the user guide.




Theme © iAndrew 2016 - Forum software by © MyBB