add ' to escape strings for html (#1974)

This commit is contained in:
Anthony Dresser
2018-07-19 14:42:29 -04:00
committed by Karl Burtram
parent 0d60fe775f
commit feab43f16d
+1
View File
@@ -15,6 +15,7 @@ export function escape(html: string): string {
case '>': return '>';
case '&': return '&';
case '"': return '"';
case '\'': return '&#39';
default: return match;
}
});