option to preserve html comments
See original GitHub issueHi,
we are using nginx serversideincludes infront of our application. nginx SSIs are expressed as html comments (https://nginx.org/en/docs/http/ngx_http_ssi_module.html) (<!--# include file="footer.html" -->
)
Unfortunately jte strips all html comments without providing an option keep them which removes all nginx SSI expressions as well.
Could you please provide an option to keep html comments as they are.
My current workaround is:
$unsafe{"<!--"}# include virtual="${virtual}" -->
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Option to preserve html comments #1420 - vitejs/vite - GitHub
Please describe. Removing all comments in HTML files is a bit heavy-handed. I was trying to port an application that makes uses of...
Read more >The HTML Comment Tag: Here's How To Use It In Your Code »
Ignore-Me Code: How to put comments into your HTML.
Read more >HTML Comment – How to Comment Out a Line or Tag in HTML
To add a single-line comment, just hold down the combo of keys shown above inside the code editor. Then the whole line you're...
Read more >How to Comment & Comment Out in HTML - HubSpot Blog
To “comment out” in HTML, simply place the < !╌ ╌> tags around the code you want to hide. These tags will tell...
Read more >How to Write HTML Comments - Career Karma
HTML comments are notes to keep HTML code organized and are ignored by the browser.
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
@Fender123 this morning publishing to maven central worked again. 1.5.1 is live containing this fix 👍
Awesome, thanks for the feedback @Fender123. I’ll put together a bugfix release this week and close this issue once it is out.