Skip to content

Instantly share code, notes, and snippets.

@richjenks
Created November 19, 2015 09:54
Show Gist options
  • Save richjenks/ec8da3f72fb96155e2ef to your computer and use it in GitHub Desktop.
Save richjenks/ec8da3f72fb96155e2ef to your computer and use it in GitHub Desktop.
Makes ZenDesk honour newlines added to field descriptions
setTimeout(function () {
var descriptions = $(".form-field p");
descriptions.each(function (index, value) {
$(this).html($(this).html().replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, "<br>"));
});
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment