fix(build): number header attribute render error

pull/3940/head
Zhengqbbb 1 year ago
parent e313a274c0
commit a5756de65f

@ -224,7 +224,7 @@ export function escapeRegExp(str: string) {
* @internal
*/
export function escapeHtml(str: string): string {
return str
return `${str}`
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')

Loading…
Cancel
Save