File Exchange

image thumbnail

Unescape a JavaScript String

version 1.3.0.1 (3.28 KB) by Matthew Simoneau
Manually interprets a JavaScript string, which may contain escape characters.

1 Download

Updated 01 Sep 2016

View Version History

View License

unescapeJavaScriptString manually interprets a JavaScript string, which may contain escape characters. This is sometimes useful when scraping HTML.

Cite As

Matthew Simoneau (2021). Unescape a JavaScript String (https://www.mathworks.com/matlabcentral/fileexchange/22760-unescape-a-javascript-string), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Sylvain Lacaze

Matthew Simoneau

Yes, us, that is a real problem!

There's probably a clever way to avoid this hack, but it didn't come to mind.

us

hmmm...
matthew,
i had a string, which contained the - certainly valid - word 'THIS_IS_ESCAPED_DUDE'...
and it got all screwed up...
:-)
us

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!