String to Escaped HTML - Online Protect Against XSS
Instantly convert plain text into HTML‑safe escaped characters for secure display in web pages. Prevent cross‑site scripting. All processing local.
UD5 Toolkit
Quickly test JavaScript regular expressions with Unicode property escapes like \p{Script=Greek} or \p{Emoji}. Full u/v flag support.
/
/
u or v flag is required for \p{...}
Unicode property escapes allow you to match characters based on their Unicode properties. For example, \p{Script=Greek} matches any character from the Greek script, \p{Emoji} matches emoji characters, and \p{Lu} matches uppercase letters. They are supported in modern JavaScript environments and require the u or v flag.
This tool helps you build and test such expressions interactively, ensuring correct results across multiple matches.
\p{Property=Value} that match characters belonging to a specific Unicode category, script, or property. For instance, \p{Script=Latin} matches any character from the Latin script.u (unicode) or the newer v (unicodeSets) flag to recognise \p{...} and \P{...} syntax. Without it, you’ll get a SyntaxError.v flag additionally supports set notation (difference/subtraction, intersection) and was introduced in ES2024. For most \p{} usage, u is sufficient.\p{...} with the u flag. The v flag is supported in recent versions (Chrome 112+, Firefox 116+, Safari 17+).\p{Emoji} matches any character with the Emoji property. Use \p{Emoji_Presentation} to match only emoji that default to text presentation (like emojis with variation selectors).\P{Script=Common} matches any character that does not belong to the Common script.\p{Script=Greek} or its short form \p{sc=Greek}. For extended Greek with Coptic, you might combine scripts with [\p{Script=Greek}\p{Script=Coptic}].u flag and that your JavaScript environment supports the specific Unicode property. This tool runs directly in your browser, so if it works here, it will work in similar modern browsers.Instantly convert plain text into HTML‑safe escaped characters for secure display in web pages. Prevent cross‑site scripting. All processing local.
Escape HTML special characters to prevent XSS attacks, or unescape HTML entities back to original text. Essential for web developers. Runs locally.
Test required, pattern, minlength etc. See validity states and custom error messages. Learn browser‑native validation.
Enter any phrase and see it spelled letter by letter using the NATO phonetic alphabet. Copy ready for radio.
Check if your site has a visible and functional skip navigation link. Key for keyboard‑only users.
Adopt a virtual pet rock. It sits there. Sometimes you can polish it or give it a name. The low‑maintenance pet you always wanted.
Create a slow, zooming and panning photo montage (Ken Burns effect) from your images. Export as WebM video. Canvas.
Paste media queries and see a visual indicator of which rules apply at current viewport size.
Test a regular expression against malicious inputs to detect catastrophic backtracking and ReDoS vulnerabilities. Educational.
Enter a GraphQL endpoint, write a query, and see the response. Add headers and variables. Simple testing client.
Connect a game controller and see every button press, axis movement, and vibration test. Uses the Gamepad API.
Connect a gamepad and see all button presses and axis movements visually. Check that every input is detected correctly.
Map English letters to fancy mathematical or ornamental Unicode symbols. Create Facebook/Twitter bio art. All local.
Convert normal text into various Unicode styles (bold, italic, script, fraktur). Copy and paste anywhere. No font install needed.
An interactive reference for regular expression tokens. Click a token to see its explanation and example. Learn regex faster.
Shows the decimal and hex code point for every character in a string, including emojis. Copy as array. Dev reference.
Write JavaScript code and see the output or console.log results immediately. Safe iframe sandbox. For quick experiments.
Experiment with CSS container queries. Resize a container and see the styles change according to its size, not the viewport. Learn the new spec.
Test prompt formatting without calling an LLM. See how your prompt would look with different templates. Dev tool.
Paste a regular expression and get a step‑by‑step plain English explanation of what it does. Learn regex.
Browse Unicode by block: Latin, Cyrillic, CJK, Emoticons. See characters and copy with a click. Full reference.
Write a media query and instantly see if it matches your current viewport. Width, height, orientation, and more.
Press any key and see it light up on a standard QWERTY layout. Check functionality or demonstrate shortcuts.
Convert any text into JavaScript‑style \uXXXX escape sequences and vice versa. Handles emojis. Useful for i18n development.
Enter a regular expression and see a visual railroad diagram explaining the pattern. Learn and debug regex.
Enter a URL and drag a slider to change the viewport width smoothly. See exactly where your layout breaks. No iframe limits.
Paste text and instantly see every character's decimal and hex ASCII/Unicode code point. Supports emojis and symbols.
Paste or write a CSS gradient value and instantly see the rendered output. Debug and iterate on gradients quickly. Local preview.
Press keys on your physical keyboard and see them highlighted on a virtual keyboard. Detects multi-key rollover. Quick hardware check.
Create styled text using Unicode math symbols that render as bold, italic, bold-italic, etc. Copy and paste to social media bios. Local generator.