forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 4
Lib html
kud1ing edited this page May 6, 2013
·
16 revisions
A library/module for escaping of HTML characters.
- Proposed editor: your name
- Date proposed: date of proposal
- Link: link to email
- note
- note
- note
- Standard: standard - link to docs - ...
- Standard: standard - link to docs - ...
- Technique: technique - link to docs - ...
- Technique: technique - link to docs - ...
- Language: Go
- html
-
EscapeString()
escapes only five characters: <, >, &, ' and " -
UnescapeString()
unescapes more characters
-
- Pull request: link to bug
- provide a
escape_basic()
that only escapes the necessary characters for security/forms/URLs - provide a
escape_full()
that escapes all characters- We probably should use a table-lookup (binary search), similar to the code in
libcore/unicode.rs
- We probably should use a table-lookup (binary search), similar to the code in