Read more

Haml: Fix problem with HTML-escaped single quotes in text fields

Martin Straub
October 24, 2012Software engineer at makandra GmbH

Haml 3.1.2 displays single quotes in FormBuilder#text_ field html escaped. You may see something like that:

David's Chapter
Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

Looking at the page's HTML, your field's values will be doubly escaped:

<input ... value="David&amp;#x27;s Chapter" />

Updating Haml to 3.1.5 or newer Show archive.org snapshot will fix it.

Posted by Martin Straub to makandra dev (2012-10-24 14:42)