Created
November 19, 2015 09:54
-
-
Save richjenks/ec8da3f72fb96155e2ef to your computer and use it in GitHub Desktop.
Makes ZenDesk honour newlines added to field descriptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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