Awesome Lists

escape-html-template-tag

by Janpot

TypeScriptpushed almost 2 years ago

Tag literal strings with this function to html escape interpolated values

AI summary

Template tag formatter

A utility for escaping and formatting string literals in template tags to prevent XSS vulnerabilities

stars
31
forks
7
watching
4
awesome list
1
View on GitHub

Embed the badge

Show how many awesome lists link to your project. The count updates automatically.

Awesome Lists badge
Markdown
[![Awesome Lists Badge](https://awesome.facts.dev/shield/Janpot/escape-html-template-tag/links.svg)](https://awesome.facts.dev/awesome/Janpot/escape-html-template-tag)
HTML
<a href="https://awesome.facts.dev/awesome/Janpot/escape-html-template-tag"><img src="https://awesome.facts.dev/shield/Janpot/escape-html-template-tag/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/Janpot/escape-html-template-tag/links.svg

Add a GitHub project

Missing a project or an awesome list? Paste its GitHub URL and we fetch it right away.