We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is a way to pass HTML content in a variable and disable the escaping process?
P.e.:
<html><body> {%$myvar = "<b>Hello</b> world"%} {%$myvar} </body></html>
Expected output:
<html><body> <b>Hello</b> world </body></html>
The text was updated successfully, but these errors were encountered:
@imayatech since FET will translate the code into html/template template code, the func.go provides a method named safe to allowed HTML output.
FET
html/template
func.go
safe
fet/lib/funcs/funcs.go
Line 226 in 9e2ebbd
<html><body> {%$myvar = "<b>Hello</b> world"|safe%} {%$myvar} </body></html>
I hope that can solves your problem. thx for your issue~
Sorry, something went wrong.
No branches or pull requests
Is a way to pass HTML content in a variable and disable the escaping process?
P.e.:
Expected output:
The text was updated successfully, but these errors were encountered: