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
@bradgessler recently brought up the need for this again, and suggested having a safe method that we can use to wrap any safe value.
safe
div(onclick: safe("foo")) { "Foo" } a(href: safe("javascript:bar")) { "Bar" }
I think this would work quite nicely. safe could return a Phlex::SafeValue, e.g.
Phlex::SafeValue
def safe(value) Phlex::SafeValue.new(value) end
And we can check for that when building attributes.
if Phlex::SafeValue === value ... end
The text was updated successfully, but these errors were encountered:
Draft PR at #719
Sorry, something went wrong.
bradgessler
No branches or pull requests
@bradgessler recently brought up the need for this again, and suggested having a
safe
method that we can use to wrap any safe value.I think this would work quite nicely.
safe
could return aPhlex::SafeValue
, e.g.And we can check for that when building attributes.
The text was updated successfully, but these errors were encountered: