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
For some reason using .to_json in a view or partial is resulting in some incorrect HTML output.
At the moment we're required to manually escape the results of .to_json, for example as part of viewloader js components:
data-view-welcome=Temple::Utils.escape_html({dismissSelector: ".welcome__dismiss", zoomSelector: ".zoom", storyMarkersSelector: ".story-marker-group"}.to_json)
We've experimented with using the following configuration, but without much luck so far: # Configure Slim Slim::Engine.options[:use_html_safe] = true
# Configure Slim
Slim::Engine.options[:use_html_safe] = true
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For some reason using .to_json in a view or partial is resulting in some incorrect HTML output.
At the moment we're required to manually escape the results of .to_json, for example as part of viewloader js components:
data-view-welcome=Temple::Utils.escape_html({dismissSelector: ".welcome__dismiss", zoomSelector: ".zoom", storyMarkersSelector: ".story-marker-group"}.to_json)
We've experimented with using the following configuration, but without much luck so far:
# Configure Slim
Slim::Engine.options[:use_html_safe] = true
The text was updated successfully, but these errors were encountered: