Flowcoder

Easy way to HTML encode a string with jQuery

Language: JavaScript

function(s) { 
  return $('<div/>').text(s).html();
}
Reveal More
  • Refactor
  • Tweet
  • Embed
  • Raw
Added almost 2 years ago by Segal-avatar_normal zdzolton
@flowcoder was coded and designed by @gbuesing, @scottymac, and @trevorturk for @railsrumble in 2009
Flowcoder