Add quote, apostrophe to list of chars to html escape
This commit is contained in:
@@ -4,6 +4,8 @@ extension String {
|
|||||||
"<": "<",
|
"<": "<",
|
||||||
">": ">",
|
">": ">",
|
||||||
"&": "&",
|
"&": "&",
|
||||||
|
"\"": """,
|
||||||
|
"'": "'",
|
||||||
]
|
]
|
||||||
/// HTML escape string. Replace '<', '>' and '&' with HTML escaped versions
|
/// HTML escape string. Replace '<', '>' and '&' with HTML escaped versions
|
||||||
func htmlEscape() -> String {
|
func htmlEscape() -> String {
|
||||||
|
|||||||
Reference in New Issue
Block a user