Convert plain text to legacy JavaScript escape sequences and decode escaped strings back to readable characters for inspecting legacy JavaScript-style content.