changing doc format and HTML literals

This commit is contained in:
udo
2026-04-22 01:56:46 +00:00
parent 8223dcc6b3
commit f7b066b374
123 changed files with 1917 additions and 1611 deletions
+11 -9
View File
@@ -5,13 +5,15 @@ String html_escape(String s)
s : string to be escaped
return value : an HTML-safe escaped version of 's'
:desc
Returns a version of the input string where the following characters have been replace by HTML entities:
- & → &amp
- < → lt;
- > → &gt;
- " → &quot;
:content
Returns a version of the input string where special HTML characters are replaced by entities:
:related
**PHP:** `htmlspecialchars()` or `htmlentities()`
**JavaScript / Node.js:** Safe text insertion via `textContent` or server-side HTML escaping libraries
- `&` becomes `&amp;`
- `<` becomes `&lt;`
- `>` becomes `&gt;`
- `"` becomes `&quot;`
## Related Concepts
- PHP: `htmlspecialchars()` or `htmlentities()`
- JavaScript / Node.js: safe text insertion via `textContent` or server-side HTML escaping libraries