-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
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
htmlspecialchars() equivalent #162
Comments
Lua page are different from PHP. See this: |
@CodelessFuture, thanks a lot, but Created and issue at htmlEntities project too: |
maintainer of htmlEntities-for-lua fixed an issue, thanks him a lot! |
Hi. I'm having some trouble at work in this period. I think I can dedicate my time at Sailor again for the end of this month. |
I asked this question at sailor chat but no one answered.
How to html encode in sailor? For example if you want to output string variable which contains double quotes character into html tag argument value?
Example usage:
<input value="<?= htmlspecialchars(myvariable) ?> " >
(function must be available at templates (.lp) files)See php documentation for similar function: http://php.net/manual/en/function.htmlspecialchars.php
The text was updated successfully, but these errors were encountered: