changing doc format and HTML literals
This commit is contained in:
@@ -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:
|
||||
- & → &
|
||||
- < → lt;
|
||||
- > → >
|
||||
- " → "
|
||||
: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 `&`
|
||||
- `<` becomes `<`
|
||||
- `>` becomes `>`
|
||||
- `"` becomes `"`
|
||||
|
||||
## Related Concepts
|
||||
|
||||
- PHP: `htmlspecialchars()` or `htmlentities()`
|
||||
- JavaScript / Node.js: safe text insertion via `textContent` or server-side HTML escaping libraries
|
||||
|
||||
Reference in New Issue
Block a user