| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,8 @@ def escape(s, quote=True): | |||
| 13 | 13 | """ | |
| 14 | 14 | Replace special characters "&", "<" and ">" to HTML-safe sequences. | |
| 15 | 15 | If the optional flag quote is true (the default), the quotation mark | |
| 16 | - character (") is also translated. | ||
| 16 | + characters, both double quote (") and single quote (') characters are also | ||
| 17 | + translated. | ||
| 17 | 18 | """ | |
| 18 | 19 | if quote: | |
| 19 | 20 | return s.translate(_escape_map_full) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments