What is prettier (i Think it is it's fault) changing my <br>
into </br>
? How can I deal with it?
before: enter image description here after: enter image description here
I tried to reinstall prettier and change my default formatter but nothing happened.
Because tags that are not closed, should be self-closed. For example <br />
and <img />
Prettier is doing what is should do.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.