Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Hint escapes HTML in string passed #299

Closed
noahhendrix opened this Issue · 1 comment

2 participants

@noahhendrix

When I pass an HTML string into an hint it will escape the tags, even if the string is already flagged as html_safe.

Example
<%= f.input :content, :label => false, :hint => "hey".html_safe %>
Outputs
hey

@yabawock
Collaborator

Introduced in commit 364ae5c
Fixed in commit d2d8131016d56080794

@julian7 julian7 referenced this issue from a commit
@yabawock yabawock More intelligent way to html_escape labels and hints (GH-299)
This commit won't escape html entities in strings marked as html_safe according to newer rails versions.
Additionally you can now turn html escaping off by setting

Formtastic::SemanticFormBuilder.escape_html_entities_in_hints_and_labels = false
2d2d813
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.