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

Computer Graphics Programming Web Design

D3plus: Enhanced D3 Visualization Library

2026-11-28 satyr.nl
Computer Graphics Programming

Analyzing Charts with Ollama LLaVA: A Practical Guide

2026-06-10 satyr.nl

Post navigation

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

Categories

Tags

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

Archives

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