html and html like template ignore --single-quote
See original GitHub issueLooks like --single-quote
is being ignored for vue templates.
Is this intentional?
Thanks
Prettier 1.16.4 Playground link
# Options (if any):
--single-quote --parser vue
Input:
<template>
<div class='app'></div>
</template>
Output:
<template>
<div class="app"></div>
</template>
Expected behavior: To leave the single quotes as is
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:26 (14 by maintainers)
Top Results From Across the Web
html - How can I escape a single quote? - Stack Overflow
The result for the above code is "hel" populated in the text box. How can I successfully escape the single quotes? html ·...
Read more >Single Quote in HTML | PageDart
Can I use single quotes in HTML? ... Yes, you can! make sure to use either double quotes to wrap your values or...
Read more >Strings - Manual - PHP
The simplest way to specify a string is to enclose it in single quotes (the character ' ). To specify a literal single...
Read more >JavaScript Strings - W3Schools
The 6 escape characters above were originally designed to control typewriters, teletypes, and fax machines. They do not make any sense in HTML....
Read more >Using single quotes to set an attribute in a template ... - HUGO
Declares a provided string as a "safe" HTML document to avoid escaping by Go templates. 2 Likes. SuperRoach August ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We should respect user option
@theengineear agree @lydell right now we can use
overrides
for enforcesingle
ordouble
quotes based on path of files (https://github.com/prettier/prettier/blob/master/docs/configuration.md), but you can’t override option insidetemplate
s