Monday, August 22, 2011

HTML Encode/Decode using JQuery

using below code you can encode/decode html tags using jquery

function htmlEncode(value){
  return $('
').text(value).html(); } function htmlDecode(value){ return $('
').html(value).text(); }

Compiled By: Rajesh Rolen

Share This!


1 comment:

Flower Girl Dresses said...

Amazing stuff,Thanks so much for this!This is very useful post for me. This will absolutely going to help me in my projects .

----------------------------------------------------------
Flower Girl Dresses|Empire Wedding Dresses|New Style Wedding Dresses

Powered By Blogger · Designed By Seo Blogger Templates