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

h() method does not return an html_safe String #1183

postmodern opened this Issue Mar 25, 2013 · 0 comments


None yet
2 participants

postmodern commented Mar 25, 2013

Now that padrino 0.11.0 is using ActiveSupport::SafeBuffer, the h() method should return an html-escaped / html-safe String, so that it does not get escaped a second time when it is emitted in a view template.

@nesquena nesquena closed this in 9a2452c Mar 25, 2013

WaYdotNET added a commit to WaYdotNET/padrino-framework that referenced this issue Mar 26, 2013

Merge remote-tracking branch 'upstream/master' into all-custom-error
* upstream/master:
  have plugin generator respect root option
  Fix very strange bug with form_for and capture_html @ujifgc #1177
  [padrino-core/rake] Adds lib as a load_path for rake tasks #1185
  [form_helpers] Use count instead of size (Closes #1184)
  [format_helpers] Mark escaped text as html_safe (Closes #1183)
  Closes #1179 for accidental appended extensions for js urls
  format activerecord migrate
  formatting activerecord migration test
  Thanks to @kenkeiter for bringing up the fact that http_router [is missing PATCH](
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment