add ' to escape strings for html (#1974)

This commit is contained in:
Anthony Dresser
2018-07-19 11:42:29 -07:00
committed by Karl Burtram
parent 0d60fe775f
commit feab43f16d

View File

@@ -15,6 +15,7 @@ export function escape(html: string): string {
case '>': return '>';
case '&': return '&';
case '"': return '"';
case '\'': return '&#39';
default: return match;
}
});