question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable HTML cleansing / reformatting?

See original GitHub issue

Hi,

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:closed
  • Created 8 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
samvaughtoncommented, Feb 27, 2017

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:

<!-- {% for item in list %} -->
<foo>bar</foo>
<!-- {% endfor %} -->

This preserves the layout.

0reactions
DiemenDesigncommented, Mar 16, 2020

There has since been settings option added codeviewFilter: false|true which can be used to filter markup, by default it is set to false.

Read more comments on GitHub >

github_iconTop 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 &nbsp - 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found