Disable HTML cleansing / reformatting?
See original GitHub issueHi,
Is it possible to disable the automatic HTML cleansing/reformatting? (or wherabouts in the file is this happening so i can try and disable manually?)
I am trying to include some handlebars tags in my HTML (in a table) e.g.
<table>
<tbody>
<tr><th>Name</th><th>Amount</th></tr>
{{#each products}}
<tr>
<td>{{name}}</td>
<td>{{amount}}</td>
</tr>
{{/each}}
</tbody>
</table>
however on save or toggle between codeview / wysiwyg veiw removes these entries 😦
Thanks.
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Cleaning HTML by removing extra/redundant formatting tags
I have tried HTMLPurifier before (using their online Demo). It does not remove redundant tags (such as <b><b>test</b></b> ). Can this ...
Read more >Online HTML Stripper. Remove HTML and formatting from text
Free online tool to strip HTML from any text. Remove all HTML and formatting from your text. StripHTML.com gives quick and easy way...
Read more >Need to clean formatting of extra   - Canvas Community
Solved: We have a course that the content was all pasted in from MS Word. When we view the html in canvas, we...
Read more >Code cleanup | JetBrains Rider Documentation
If you are cleaning up a selection, press Alt+Enter and choose Reformat and cleanup | [cleanup profile]. Alternatively you can follow the below ......
Read more >HTML Cleaner - Online Beautifyer and Word Converter
Get rid of your dirty markup with the free online HTML Cleaner. Easy to compose, edit, format and minify the web code with...
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 Free
Top 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
Also struggling with finding an elegant solution for this.
Edit: I’m using Twig, and I found that wrapping twig constructs within HTML comments seems to work. Eg:
This preserves the layout.
There has since been settings option added
codeviewFilter: false|true
which can be used to filter markup, by default it is set tofalse
.