Looking for double quotes inside Jinja tags
Open
Nobody has claimed this yet.
keep-unstale
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 474
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 12
Description
Hi, thanks for the excellent tool! When running on Jinja2 templates it generally works pretty well. However, when there is an if statement inside a tag this error comes up -

The html is:
<!DOCTYPE HTML>
<option value="{{ t.id }}" {% if t.id == s.type_id %}selected{% endif %}>{{ t.name }}</option>
and run htmlhint:
npx htmlhint test.html
Is there a way that at htmlhint can ignore what is inside a {% ... %} and {{ ... }} ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running npx htmlhint test.html with the HTML and Jinja tags shown in the report, then trace how HTMLHint handles {% ... %} and {{ ... }} content. Done means the sample template is accepted without treating text inside those delimiters as HTML attributes or markup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100