Skip to content

blog.satyr.nl

yet another link collection

  • Home
  • HTML Entity Encoder / Decoder
Programming

HTML Entity Encoder / Decoder

2005-07-18 satyr.nl

Andrew Urquhart’s Miscellany : Scripts : HTML Entity Encoder / Decoder
This piece of code decodes all numeric entities in a string:

function EntitiesToText(strEncodedText) {
return strEncodedText.replace(/(&#(\\d+));/ig, String.fromCharCode("$1"));
}

Related Posts

Programming

paraphrase-id-tensorflow

2020-02-24 satyr.nl
Programming

nomnoml

2019-12-10 satyr.nl

Post navigation

Previous: XSLT Questions and Answers.
Next: javascript Syntax Highlighter

Categories

Tags

3d (24) ajax (72) algorithm (272) android (26) api (35) art (485) as (43) css (113) dotnet (98) flash (138) fun (44) games (81) generator (19) google (66) html (88) http (85) instruments (29) java (56) javascript (546) json (29) lego (31) linux (19) lua (19) math (34) midi (32) mobile (19) music (78) mysql (62) nodejs (29) php (184) python (27) read (125) rest (43) retro (37) security (25) soa (30) social (25) sql (48) sysarch (87) tool (88) webservices (148) weird (26) windows (43) xml (75) xslt (22)

Archives

All Rights Reserved 2021.
Proudly powered by WordPress | Theme: Elf by Candid Themes.